When editing javascript files in Sublime Text Editor 3.x, I get the error:
Oops! Something went wrong! :(
ESLint: 6.0.1.
ESLint couldn't find the plugin "eslint-plugin-chai-expect".
(The package "eslint-plugin-chai-expect" was not found when loaded as a Node module from the directory "C:\workspace\flltools".)
It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
npm install eslint-plugin-chai-expect@latest --save-dev
The plugin "eslint-plugin-chai-expect" was referenced from the config file in "modules\scoring\.eslintrc.yml".
If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.
I tried multiple solutions I found online, including removing global ESLint/moving all ESLint related packages to be global, to altering the SublimeLinter.settings
file. The problem only occours when running lint through Sublime. When I run eslint
command, it works perfectly.
If anyone has any idea why this is happenning please help me!
Thank you
package.json
, I have thosedevDependencies
. It seems to be looking in a parent folder (as you can see in the error it's looking inc:/workspace/flltools
, whereas my project is inc:/workspace/flltools/modules/scoring
. Maybe that has something to do with the problem? I checked and there's nopackage.json
in that directory. – Cyclopedia