-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't resolve 'ansi-html' in '.../node_modules/webpack-dev-server/client' #10
Comments
Hi @avinashs2401, did you change the import as well? you should import it like this: import ansiHTML from "ansi-html-community"; Read more here. Let me know if it's solved or not! |
@mahdyar I'm not using the ansiHtml explicitly anywhere in my project. It's an inner dependency of webpack-dev-server which in turn is a dependency of @angular-devkit/build-angular |
Would you try with |
@mahdyar No. That's not working as well. So the problem I'm facing is exactly described here by someone - https://stackoverflow.com/questions/64605805/npm-force-resolutions-not-working-when-installing-a-new-package. Initially when I delete node_modules and run npm install. There is no trace of ansi-html in the resolved packages. But when I run the application I face the error described above. |
Hi,
In my angular application I faced the ansi-html vulnerability issue (No direct dependency of ansi-html in my project, it's an inner dependency of other packages) and I did the following in package.json to force resolve to ansi-html-community,
The package-lock.json now has the ansi-html-community only and not ansi-html. But when I run the application, I get the following error,
Please help on this.
The text was updated successfully, but these errors were encountered: