-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm start gives "Module build failed: Error: Failed to load plugin import: Cannot find module 'eslint-plugin-import'" #2779
Comments
|
I had same issue.
|
Can confirm I'm seeing this too with a fresh |
The following is working fine: $ npx create-react-app test-eslint
$ cd test-eslint/
$ yarn start $ npm -v
5.2.0
$ node -v
v8.1.4 This means it's an NPM bug or an environment bug. If you can tell us how or why your environment is unique, we may be able to help. But this is not a bug on our end. |
Switching back to npm@4.6.1 solved the issue for me. |
Thanks for confirming @tjkSec; closing this as author failed to follow the issue template. For anyone experiencing this issue; please use NPM 4.x ( |
Users on reddit reporting the same issue. Agree it's a problem with NPM. |
I've commented on reddit, @NathanCH. Thanks for the heads up. |
Please file bugs with npm too so they can fix. |
@tenzan thanks for the full list of plugins that npm 5.2 finds missing. One thing to bear in mind is that npm start
Compiled with warnings.
./src/index.js
Line 1: Definition for rule 'jsx-a11y/href-no-hash' was not found jsx-a11y/href-no-hash
./src/registerServiceWorker.js
Line 11: Definition for rule 'jsx-a11y/href-no-hash' was not found jsx-a11y/href-no-hash
./src/App.js
Line 1: Definition for rule 'jsx-a11y/href-no-hash' was not found jsx-a11y/href-no-hash
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before. Here's a one-liner hack that temporary helped me
|
May I ask why you're against downgrading to
I'm not sure what the npm cli team is really doing -- for example, I would not expect the npm cli team to be pressed by any authority until Node 8 is about to enter LTS. |
I've tried with npm v4 and I confirm it works. I had the same issue, so downgrading to v4 it takes only 20 secs and it's the "best" solution... |
I can empathize with npm here because the only way they can find bugs after a rewrite is by pushing out releases and fixing regressions. I’m hopeful that it should get better after 5.2.1. |
I'd like to stress that I'm very grateful for the effort the npm team puts in. I hope I didn't come off too aggressive. |
All worked for me after upgrading to npm 5.3. Can anyone else confirm please? |
Upgrading to npm@5.3.0 solves the problem. |
Upgrade to npm v5.3.0 didin't work for me, I had to switch to yarn |
Is this a bug report?
Yes, seems like it to me.
Can you also reproduce the problem with npm 4.x?
I haven't tried yet. I think that would be a wild goose chase. This problem just started today out of the blue. My hunch is that is an environment problem of some sort.
Which terms did you search for in User Guide?
I did a google search instead. Found no help.
Environment
node -v
: v8.1.2npm -v
: 5.2.0yarn --version
(if you use Yarn): don't usenpm ls react-scripts
(if you haven’t ejected): react-scripts@1.0.10Then, specify:
Steps to Reproduce
(Write your steps here:)
Invoke:
After step #3 the console window shows:
Expected Behavior
(Write what you thought would happen.)
Actual Behavior
(Write what happened. Please add screenshots!)
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: