[email protected] requires a peer of webpack@^1.0.0 || ^2.0.0 || ^3.0.0 but none is installed

1.5k Views Asked by At

I don't have webpack-dev-middleware installed in my project but when I build it using webpack it throws below warning.

[email protected] requires a peer of webpack@^1.0.0 || ^2.0.0 || ^3.0.0 but none is installed

Below are webpack related lib's I am using in my project.

"webpack": "^4.15.0", "webpack-cli": "^3.0.8", "webpack-dev-server": "^3.1.4", "webpack-node-externals": "^1.6.0"

Any idea how to fix this warning.

1

There are 1 best solutions below

0
On

try deleting your node_modules directory and then install packages again npm install. It worked to me