Error: Failed to load plugin import: Cannot find module 'es6-set'
See original GitHub issueI’m getting this error with a globally installed eslint and Node 7 Nightly on Windows:
The error message in Atom editor:
Error: Failed to load plugin import: Cannot find module 'es6-set' Referenced from: C:\Users\Lanti\AppData\Roaming\npm\node_modules\eslint-config-airbnb\node_modules\eslint-config-airbnb-base\index.js Referenced from: airbnb Referenced from: C:\www\node\lantosistvan.eslintrc.js
Error: Failed to load plugin import: Cannot find module 'es6-set'
Referenced from: C:\Users\Lanti\AppData\Roaming\npm\node_modules\eslint-config-airbnb\node_modules\eslint-config-airbnb-base\index.js
Referenced from: airbnb
Referenced from: C:\www\node\lantosistvan\.eslintrc.js
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (C:\Users\Lanti\AppData\Roaming\npm\node_modules\eslint-plugin-import\lib\rules\max-dependencies.js:5:15)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
Node version: v7.0.0-test2016100609987d242b NPM version: 3.10.8
I think these are related issues: https://github.com/airbnb/javascript/issues/465 https://github.com/walmartlabs/eslint-config-defaults/issues/43 https://github.com/benmosher/eslint-plugin-import/issues/611 https://github.com/benmosher/eslint-plugin-import/issues/604
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
node.js - Failed to load plugin import: 'eslint-plugin-import'
The issue is resolved for me after installing the following in a row: npm install eslint-plugin-import eslint-plugin-flowtype ...
Read more >Error: Failed to load plugin import: Cannot find module 'eslint ...
Coding example for the question Error: Failed to load plugin import: Cannot find module 'eslint-plugin-import' when deploying a create-react-app-Reactjs.
Read more >Failed To Load Plugin Import: Cannot Find Module 'Eslint
Try running this: npm install eslint eslint work in terminal but doesn't show errors highlighted in vscode.The config wesbos was referenced from the....
Read more >Setting up efficient workflows with ESLint, Prettier and ...
In this article I would like to start very easily and go into more depth from topic to topic. In the first step...
Read more >eslint-plugin-import - npm
Start using eslint-plugin-import in your project by running `npm i ... import x from 'module' should look to find the file behind module...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I’m suggesting the former.
You could certainly do the latter but I don’t think any project should be linted unless a developer who cloned the project on another machine can run
npm install
and be able to lint it the same as you - in other words, literally anything you run on your project should be in package.json.@DJviolin assuming you are using the
linter-eslint
package in Atom, you shouldn’t need to set anything. It should detect the locations for you if you have everything installed locally in the project.The latter actually won’t work inside Atom, at least not without modifying the code of the package. What you are describing is similar to a global install of eslint which isn’t recommended, but is supported.