-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Failed to load plugin 'import' declared in '--config » eslint-config-standard': Cannot find module 'eslint' #1439
Comments
Hi, @marcospgp. Thank you for using Standard. To begin helping you, I'd like more information. Could you please submit a new issue with all of the issue template filled in? For our convenience, I'll close this one. |
@mightyiam I'm sorry, I don't have the time right now. I just installed standard so it's the latest version. Ran on VSCode on Windows. Standard is the only project dependency. |
Could you please run |
For sure!
|
How are you running |
I tried both with the integrated command line in VSCode (bash) and through the VSCode extension, both show the same error. |
Could you please paste the result of the |
I have this consistently failing on Travis CI! 😄 https://travis-ci.org/LinusU/node-albatross/jobs/597540373 $ node --version
v12.12.0
$ npm --version
6.11.3
I wonder if the problem is that $ npm ls eslint
albatross@1.1.0 /Users/linus/coding/node-albatross
└─┬ standard@14.3.1
└── eslint@6.4.0 |
Hmm, maybe this is related?
https://twitter.com/feross/status/1161900081492234240 Not exactly the same though? 🤔 |
This makes it seem like
|
@LinusU, if you have a local installation where this is occurring, could you please type in |
Unfortunately, I haven't been able to reproduce this locally yet. Hopefully I can take some time soon to reproduce this inside an Ubuntu Docker container |
This seems to be fixed with all the latest versions now. @marcospgp can you try and trash your |
I just got the same error, turns out So I deleted the package-lock file and reinstalled everything. Hope it helps someone. |
Thank you for the tip, @AndyOGo . |
@AndyOGo Worked pretty well for me too |
I have the same error but only when I want to use it with VSCode. The ESLint tab shows this:
The require stack is a bit strange because it starts from the project root and not from the eslint root. |
Ok for VSCode try this solution in case your eslint root is not your project root: microsoft/vscode-eslint#196 |
@AndyOGo I was having a similar problem - deleted the |
@charleycodes you mean re-ran yarn install ? |
Should I install eslint? Couldn't find this information in the readme.
Thanks!
The text was updated successfully, but these errors were encountered: