Failed to load plugin 'js' declared in 'CLIOptions': Cannot find module 'eslint-plugin-js'
See original GitHub issueI don’t know why, when I open the project in Vscode, it always reports this error, and I can’t find the solution, and I don’t know what this thing is. Does anyone have the same experience as me? Are there any recommended solutions? (Currently, I have installed eslint plug-in in Vscode and eslint globally.)
Failed to load plugin 'js' declared in 'CLIOptions': Cannot find module 'eslint-plugin-js'
Require stack:
- /Applications/MAMP/htdocs/demo/demo-react/teach-system-react/__placeholder__.js
Happened while validating /Applications/MAMP/htdocs/demo/demo-react/teach-system-react/src/pages/Layout/layoutSider/index.js
This can happen for a couple of reasons:
1. The plugin name is spelled incorrectly in an ESLint configuration file (e.g. .eslintrc).
2. If ESLint is installed globally, then make sure 'eslint-plugin-js' is installed globally as well.
3. If ESLint is installed locally, then 'eslint-plugin-js' isn't installed correctly.
Consider running eslint --debug /Applications/MAMP/htdocs/demo/demo-react/teach-system-react/src/pages/Layout/layoutSider/index.js from a terminal to obtain a trace about the configuration files used.
I hope someone can help me. Thank you very much(url)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
VSCode failed to load plugin cannot find module 'eslint-plugin ...
After running npm i eslint-plugin-prettier restart the VSCode workspace. Happens to me consistently, every time I setup a new Javascript/Node/ ...
Read more >WEB-53184 - YouTrack
Error : Failed to load plugin '@typescript-eslint' declared in '../../../.eslintrc.json': Cannot find module '@typescript-eslint/eslint-plugin'.
Read more >[eslint] failed to load plugin 'prettier' declared in '.eslintrc.js'
UnhandledPromiseRejectionWarning: Error: Failed to load plugin 'vue' declared in 'frontend/.eslintrc.js': Cannot find module 'eslint-plugin-vue'.
Read more >How to install @wordpress/eslint-plugin to make it work?
Now going to VSCode and opening any js file from any theme or plugin gives me 'Failed to load plugin '@wordpress/eslint-plugin' declared in...
Read more >eslint/eslint - Gitter
Failed to load plugin 'react' declared in 'project-igi/.eslintrc.js': Cannot find module 'eslint-plugin-react' This can happen for a couple of ...
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
Hey, buddy, thank you so much. According to your train of thought, I went to look at my Vscode configuration file and the question really came from ‘eslint.options’. The problem has been solved, thank you for your help, let me solve my problem
issue closed because it is not an ESLint issue.