question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After updating to 13.0.0 lint fails to load plugin 'eslint-plugin-import'

See original GitHub issue

Description 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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
pavankjaddacommented, Nov 20, 2021

My bad. Updated it. Works fine now. Thanks

3reactions
JamesHenrycommented, Nov 18, 2021

What version of eslint-plugin-import do you have installed? I believe support for exports only landed in 2.25.x so please ensure you are on that version or later and try again

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found