Skip to content

ESLint: Unable to resolve path to module 'typescript-eslint'.(import/ no-unresolved) #3140

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

Closed
Kogomre opened this issue Jan 13, 2025 · 2 comments

Comments

@Kogomre
Copy link

Kogomre commented Jan 13, 2025

Hi, how fix this error ESLint: Unable to resolve path to module 'typescript-eslint'.(import/ no-unresolved)?
Code example here https://github.com/Kogomre/typescript-eslint/blob/main/eslint.config.mjs

@michaelfaith
Copy link
Contributor

The typescript-eslint package doesn't have a main entry and only uses exports conditions for its entry points, which the node resolver doesn't currently support.

Screenshot of a portion of typescript-eslint's package.json

@Samuel-Therrien-Beslogic

import/no-unresolved supports ignore regexes, so a config like this one should do the trick:

"import/no-unresolved": [
  "error",
  { "ignore": ["typescript-eslint"] }
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants