joeeames / WebpackFundamentalsCourse

272 stars 122 forks source link

webpack-dev-server not working with jshint when only installed globally #4

Open ro-savage opened 8 years ago

ro-savage commented 8 years ago

Running on OS X, node 0.12.7, NPM 3.4.0, webpack 1.12.9, webpack-dev-server 1.14.0, jshint 2.8.0, jshint-loader 0.8.3

I was getting the error

ERROR in (webpack)-dev-server/client?http://localhost:8080
Module not found: Error: Cannot resolve module 'jshint-loader' in /usr/local/lib/node_modules/webpack-dev-server/client
 @ (webpack)-dev-server/client?http://localhost:8080 1:10-24

This was fixed by installing webpack-dev-server into the project directory.