-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Bug: (TypeError: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.json': Class extends value undefined is not a constructor or null) #15149
Comments
It seems to be working with eslint 7.32.0. |
Confirmed this issue, got this error after upgraded to 8.0.0. I've to rollback to 7.32.0 for workaround. |
I also have this issue after install 8.0.0. |
eslint v8 will be supported in ts-eslint v5. please follow the issue: typescript-eslint/typescript-eslint#3738 |
As noted, this is an issue with typescript-eslint. We will leave this issue open for visibility. You can try the release candidate of the new version: npm install typescript-eslint@rc-v5 |
thanks @nzakas working fine with @rc-v5 |
@nzakas Thanks a lot for the fast response !! ✨ |
I also have this issue after install 8.0.0. |
update: ts-eslint v5.0.0 has been released. 🎉 |
@aladdin-add thanks for the heads up! Closing this issue as resolved. |
I have still this issue after upgradin to ts-eslint 5.0.0
|
Same here |
@KrakenTyio @rudivanbiljon, what's the output running if it's all v5, please file an issue in ts-eslint repo. |
I am seeing this same issue with react testing library as a plugin after upgrading to v8.
anyone else seeing this too?
|
It seems that ESLint-Plugin-Testing-Library is not fully ready for ESLint 8 yet. Nonetheless you're able to install and try the latest alpha of ESLint-Plugin-Testing-Library to get your linter running. Try: This worked at least on my machine :) |
Got the same issue with the 8.0.1 version |
Needed in order to upgrade eslint. > TypeError: Failed to load plugin '@typescript-eslint' declared in > '--config': Class extends value undefined is not a constructor or null eslint/eslint#15149 Need to upgrade `@typescript-eslint/*` simultaneously?
Needed in order to upgrade eslint. > TypeError: Failed to load plugin '@typescript-eslint' declared in > '--config': Class extends value undefined is not a constructor or null eslint/eslint#15149 Need to upgrade `@typescript-eslint/*` simultaneously?
Needed in order to upgrade eslint. > TypeError: Failed to load plugin '@typescript-eslint' declared in > '--config': Class extends value undefined is not a constructor or null eslint/eslint#15149 Need to upgrade `@typescript-eslint/*` simultaneously?
Needed in order to upgrade eslint. > TypeError: Failed to load plugin '@typescript-eslint' declared in > '--config': Class extends value undefined is not a constructor or null eslint/eslint#15149 Need to upgrade `@typescript-eslint/*` simultaneously? Fix: src/webviews/server.ts 43:5 error Constraining the generic type `P` to `any` does nothing and is unnecessary @typescript-eslint/no-unnecessary-type-constraint
Needed in order to upgrade eslint. > TypeError: Failed to load plugin '@typescript-eslint' declared in > '--config': Class extends value undefined is not a constructor or null eslint/eslint#15149 Need to upgrade `@typescript-eslint/*` simultaneously? Fix: src/webviews/server.ts 43:5 error Constraining the generic type `P` to `any` does nothing and is unnecessary @typescript-eslint/no-unnecessary-type-constraint
Got same issue with: |
Had the same issue on node version |
Confirming this issue on node version |
@nzakas please reopen, this issue has resurfaced. |
eslint 8 supports the following versions of Node.js: Lines 147 to 149 in 11c8580
typescript-eslint < 5 is not compatible with eslint 8. If you still see this error with the latest versions of eslint and typescript-eslint on Node ^12.22.0 || ^14.17.0 || >=16.0.0, please open a new issue with all the details so we could investigate. |
Linting failures required updates of their own: 1. Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Failed to load plugin 'unicorn' declared in '.eslintrc » eslint-config-oclif': Package subpath './lib/rules/no-warning-comments' is not defined by "exports" in /.../node_modules/eslint/package.json Fix: oclif/eslint-config-oclif#93 "overrides": { "eslint-plugin-unicorn": "^41.0.0", } 2. As a result of the override above Bug: (TypeError: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.json': Class extends value undefined is not a constructor or null) Fix: eslint/eslint#15149 "overrides": { "eslint-plugin-unicorn": "^41.0.0", "@typescript-eslint/parser": "^5.0.0", "@typescript-eslint/eslint-plugin": "^5.0.0" },
Linting failures required updates of their own: 1. Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Failed to load plugin 'unicorn' declared in '.eslintrc » eslint-config-oclif': Package subpath './lib/rules/no-warning-comments' is not defined by "exports" in /.../node_modules/eslint/package.json Fix: oclif/eslint-config-oclif#93 "overrides": { "eslint-plugin-unicorn": "^41.0.0", } 2. As a result of the override above Bug: (TypeError: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.json': Class extends value undefined is not a constructor or null) Fix: eslint/eslint#15149 "overrides": { "eslint-plugin-unicorn": "^41.0.0", "@typescript-eslint/parser": "^5.0.0", "@typescript-eslint/eslint-plugin": "^5.0.0" },
Environment
Node version: v14.18.0
npm version: 6.14.15
yarn version: 1.22.10
Local ESLint version: 8.0.0
Global ESLint version: -
Operating System: Windows 11
What parser are you using?
@typescript-eslint/parser
What did you do?
Configuration
.eslintrc.json
.eslintignore
package.json
command launched
What did you expect to happen?
I expect eslint to lint my files.
What actually happened?
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: