Closed jaythomas closed 7 years ago
Looks like this is grunt-webpack package issue: https://stackoverflow.com/questions/39364017/grunt-webpack-cannot-find-module-webpack-dev-server. We will add this dependency as a temporary solution, thanks.
If you update to the latest version of grunt-webpack
, it appears it is now made an optional dependency: https://github.com/webpack-contrib/grunt-webpack/pull/70
But since it is required for local development and testing here I think it is best left explicitly defined as a devDependency.
Well, I have updated grunt-webpack and webpack itself, and this has allowed me to remove webpack-dev-server from the project. We are using grunt-contrib-connect for dev server and no webpack-dev-server is needed; the only trouble was in that log-warning. Now the project is clear. Thanks!
Seems the grunt task depends on webpack-dev-server, because installing it resolved the issue for me.
To replicate the issue:
git clean -xfd
)npm install
npm run dev
Results: This error will occur...