question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to load plugin 'js' declared in 'CLIOptions': Cannot find module 'eslint-plugin-js'

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Joshua-Leeecommented, Nov 11, 2020

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

0reactions
yeonjuancommented, Nov 12, 2020

issue closed because it is not an ESLint issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found