-
-
Notifications
You must be signed in to change notification settings - Fork 121
Could not load plugin @ typescript-eslint: cannot find module 'eslint-plugin-@typescript-eslint' #287
Comments
@baixiaoji I think your configuration is wrong module.exports = {
...
plugins: ["@typescript-eslint"] // wrong
plugins: ["@typescript-eslint/eslint-plugin"] // right
...
} |
i change the config, but having a new error
|
@ricardogobbosouza |
not working with eslint version 6.1.0 |
i reduce the version of eslint from 6.x.x to 5.14, it's worked |
still problem here with 5.14 |
Same thing here. |
I've just heard reports of this issue with ESLint 6.6.0 in my team, it is fine on ESLint 6.5.1 though. This may be an ESLint issue. |
Weird bug encountered. Doesn't happen on eslint 5.14.1 version. Error was: ```'@typescript-eslint' declared in 'dashboard/.eslintrc.js': Cannot find module '@typescript-eslint/eslint-plugin' Require stack:``` Fix was talked about in this issue: `webpack-contrib/eslint-loader#287
Still, no fix doesn't work when downgrading eslint |
Have you tried downgrading to version 5.x.x like @seedliu mentioned above |
Yup, 5.14 and 6.5.1 doesn't work for me |
Its works! // package.json
{
"scripts": {
"dev": "webpack"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.6.1",
"@typescript-eslint/parser": "^2.6.1",
"eslint": "^6.6.0",
"eslint-loader": "^3.0.2",
"typescript": "^3.7.2",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10"
}
} // .eslintrc
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"]
} // webpack.config.js
module.exports = {
mode: "development",
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint-loader'
}
]
}
} |
Please, if any error occurs, provide a repository and step by step to reproduce |
Hello, |
Error Still there. I am using I have just installed fresh windows. My
|
@RahmatAliMalik5 |
@ricardogobbosouza The error maybe due to VS Code extension ESLint, I am using to lint automatically (link of extension). I have tested it several times. Don't know why it comes only when I us latest version globally. It never comes when I use local |
The following worked for me.
{
"folders": [
{
"path": "."
}
],
"settings": {
"eslint.workingDirectories": [
{"mode": "auto"}
]
}
} |
@RahmatAliMalik5 this is a change in eslint 6. |
This is the issue I'd been facing. I moved the source code to root of the project directory and it got fixed. @FuzzyAtish Thanks! ✌️ |
after i downgraded it it work succeed |
1 similar comment
after i downgraded it it work succeed |
if you run |
I got the same error without any update, the same codebase as yesterday. I don't know what I have to do actually.... |
Node version to 12.x done it for me |
Related to typescript-eslint/typescript-eslint#2100 |
Error still exists, downgrade to version 3.0.0 or update to 3.0.3 alpha not work to me. |
What I've found is, that when you run
So once I added the concrete dependency via Hope that helps. |
I had this problem too, I try to upgrade my node.js, and then it is fixed. |
I reconfigure my project from tslint to eslint. I can start eslint manually, but the webpack does not start with this error message:
Module build failed (from /path/node_modules/eslint-loader/index.js): Error: Failed to load plugin @typescript-eslint: Cannot find module 'eslint-plugin-@typescript-eslint'
I'm not sure if this is a major eslint-loader problem.
My .json package
The text was updated successfully, but these errors were encountered: