DEV Community

Gilbert Ngeno
Gilbert Ngeno

Posted on

React JS error WebPack 4.44.2 (temp Fix)

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

"webpack": "4.44.2"

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

/home/user1/node_modules/webpack (version: 4.44.1)

  1. create a .env at the root of the folder of react folder
  2. type SKIP_PREFLIGHT_CHECK=true in side .env file
  3. now run in cmd npm start .

Top comments (0)