Home > AI > Frontend > ReactJS >

(error) webpack-dev-server” version conflict

Error message looks like this

There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

  "webpack-dev-server": "3.11.1"

Don't try to install it manually: your package manager does it automatically.
However, a different version of webpack-dev-server was detected higher up in the tree:

  /Users/dph/node_modules/webpack-dev-server (version: 3.11.0) 

Solution:

Delete the global node_moduels located in /Users/dph/node_modules

Leave a Reply