Skip to content
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

Tries to load plugin from wrong directory #90

Open
JesusTheHun opened this issue Sep 28, 2020 · 0 comments
Open

Tries to load plugin from wrong directory #90

JesusTheHun opened this issue Sep 28, 2020 · 0 comments

Comments

@JesusTheHun
Copy link

I have a project Foo with several modules, one of them is webapp. This is the module that requires ESLint.

Oops! Something went wrong! :(
ESLint: 6.8.0.
ESLint couldn't find the plugin "@typescript-eslint/eslint-plugin".
(The package "@typescript-eslint/eslint-plugin" was not found when loaded as a Node module from the directory "/Users/jonathan/IdeaProjects/Foo".)
It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
npm install @typescript-eslint/eslint-plugin@latest --save-dev
The plugin "@typescript-eslint/eslint-plugin" was referenced from the config file in "webapp/.eslintrc.js".
If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.

This problems happens with Automatic ESLint configuration and with Manual configuration :

ESLint package : /Users/jonathan/IdeaProjects/Foo/webapp/node_modules/eslint
Configuration File : /Users/jonathan/IdeaProjects/Foo/webapp/.eslintrc.js

I also tried to add :

Extra eslint options : --resolve-plugins-relative-to /Users/jonathan/IdeaProjects/Foo/webapp

Without any success. I don't understand why it tries to load the plugin from the root of the project instead of the module it lies in. Is this the expected behavior ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant