cdharris / react-app-rewire-hot-loader

Adds the react-hot-loader to your create-react-app via react-app-rewired

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

why you use webpack as dependency?

orlov-vo opened this issue · comments

remove webpack from dependency because it is unnecessary in your script

thanks!

Having webpack 3.12.0 as a dependency of react-app-rewire-hot-loader is conflicting with Create React App's webpack dependency on a newer version of webpack (4.19.1):

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": "4.19.1"

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:

  /Users/user/my_project/node_modules/webpack (version: 3.12.0)

Manually installing incompatible versions is known to cause hard-to-debug issues.

running npm ls webpack inside the project folder returns the following:

my_project@1.0.147 /Users/user/my_project
└─┬ react-app-rewire-hot-loader@1.0.1
  └── webpack@3.12.0

Thanks for the comments, I've removed webpack as a dependency now and republished. hope this helps!