Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

npm install dependency issue with webpack #4

Closed
GavinRooney opened this issue Nov 18, 2020 · 3 comments
Closed

npm install dependency issue with webpack #4

GavinRooney opened this issue Nov 18, 2020 · 3 comments
Labels
bug Something isn't working question Further information is requested triaged

Comments

@GavinRooney
Copy link

There is an error when running npm install as guided here

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/webpack
npm ERR! dev webpack@"^4.42.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^3.1.0" from [email protected]
npm ERR! node_modules/extract-text-webpack-plugin
npm ERR! dev extract-text-webpack-plugin@"^3.0.2" from the root project

@devalevenkatesh devalevenkatesh added bug Something isn't working triaged labels Nov 25, 2020
@cardright
Copy link

I had to run webpack-cli init

@michhyun1
Copy link
Contributor

I was able to clone the repo and do npm install for both the agent and customer. Could you please give some more details on what steps you took to get this error? Thanks.

@michhyun1 michhyun1 added question Further information is requested and removed question Further information is requested labels Dec 16, 2020
@devalevenkatesh
Copy link
Contributor

devalevenkatesh commented Dec 29, 2020

I tried re-installing the /agent and /customer apps as instructed in the README. I did not found the stated error. One reason may be the extract-text-webpack-plugin and webpack version. This plugin was deprecated in Webpack 4. You can try removing extract-text-webpack-plugin from package.json of both apps since we do not use it anyway and do npm install again, this may solve the dependency resolution problem. Both the apps use the updated and recommended mini-css-extract-plugin. You can check this Webpack issue comment for more information.

Closing the issue. Please feel free to re-open if you still face the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working question Further information is requested triaged
Projects
None yet
Development

No branches or pull requests

4 participants