After updating to 13.0.0 lint fails to load plugin 'eslint-plugin-import'
See original GitHub issueDescription and reproduction of the issue
- Clone the repo
- Install dependencies and run the lint command
$ npm install
$ npm run lint
and the result looks like
An unhandled exception occurred: Failed to load plugin 'eslint-plugin-import' declared in 'projects/ngx-cookie-service/.eslintrc.json » ../../.eslintrc.json#overrides[0] » plugin:@angular-eslint/ng-cli-compat': Package subpath './lib/util/glob-util' is not defined by "exports" in /Users/jaddap2/WebstormProjects/ngx-cookie-service/node_modules/eslint/package.json
See "/private/var/folders/1v/vz08n4553r56bprqn9gcmqtw7ggw12/T/ng-NfX4rs/angular-errors.log" for further details.
Versions
package | version |
---|---|
@angular-eslint/utils |
13.0.0 |
ESLint |
8.2.0 |
node |
16.13.0 |
# Please run `npx ng version` in your project and paste the full output here:
Angular CLI: 13.0.0
Node: 16.13.0
Package Manager: npm 8.1.0
OS: darwin x64
Angular: 13.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1300.0
@angular-devkit/build-angular 13.0.0
@angular-devkit/core 13.0.0
@angular-devkit/schematics 13.0.0
@schematics/angular 13.0.0
ng-packagr 13.0.0-rc.3
rxjs 7.4.0
typescript 4.4.4
- [ x] I have updated to the latest supported version of the packages and checked my
ng version
output per the instructions given here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
ng lint no longer working after updating to angular 14 from ...
I found the solution. I did the next steps: Update eslint-plugin-jest manually to 26.8.7; Update eslint-plugin-import manually to 2.26.0 ...
Read more >eslint/eslint - Gitter
ESLint couldn't find the plugin "eslint-plugin-internal-rules". I tried reinstallign as siggested but it did not help. How do I solve this problem?
Read more >[eslint] failed to load plugin 'prettier' declared in '.eslintrc.json'
I solved this issue by removing existing eslint-config-prettier and eslint-plugin-prettier from package.json. Then after re-installed with yarn (or npm) as ...
Read more >eslint-import-resolver-typescript - npm
This plugin adds `TypeScript` support to `eslint-plugin-import`. ... After version 2.0.0, .d.ts will take higher priority then normal .js ...
Read more >Npm run start not working, No configuration provided for main ...
dev stylelint-webpack-plugin@"^0.10.5" from the root project nom ERR! nom ERR! ... I tried with node version 13.0.0 and npm install works.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My bad. Updated it. Works fine now. Thanks
What version of
eslint-plugin-import
do you have installed? I believe support for exports only landed in2.25.x
so please ensure you are on that version or later and try again