Skip to content
This repository has been archived by the owner on Jul 18, 2019. It is now read-only.

Module build failed: Error: Cannot find module 'jshint' #52

Open
dorianrod opened this issue Apr 2, 2018 · 1 comment
Open

Module build failed: Error: Cannot find module 'jshint' #52

dorianrod opened this issue Apr 2, 2018 · 1 comment

Comments

@dorianrod
Copy link

Hello,
I use webpack 3.8, and i can't use the given configuration as I have error "Module build failed: Error: Cannot find module 'jshint'".
Nevertheless, the directory "jshint-loader" is in node_modules... Any ideas ? :)

The code I use:

module: {
rules: [
{
test: /.(jsx|js)$/,
exclude: /node_modules/,
use: [{
loader: 'babel-loader',
options: {
presets: ["es2017", "stage-0", "react", ],
plugins: ["transform-decorators-legacy"]
}
}, {
loader: 'jshint-loader'
}]
}
Thanks,
Dorian

@GreenImp
Copy link

GreenImp commented Apr 5, 2019

I hit the same issue. I ran npm install jshint --save-dev and that resolved it.

However, then I hit the same issue as in #50 which doesn't appear to have a nice fix at present.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants