-
-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Description
Hi,
Starting from version 3.8.x of eslint-import-resolver-typescript, I started getting import/no-unresolved on references between projects in my NX monorepo with aliases.
It worked fine until version 3.7.0, but it stopped working since. I also tested it on the recently released 3.8.6 but it's still the same issue.
There are some related issues starting from 3.8.x, but this issue wasn't resolved as part of the fixes:
- import-x/no-unresolved errors after updating
eslint-import-resolver-typescriptfrom 3.7.0 to 3.8.3 #364 no-unresolvedJS alias regression in 3.8+ #363- Unable to resolve path to module with aliases. #359
I created a reproduction repo here. It has two libraries, with my-lib2 referencing my-lib.
Reproduction steps:
- Clone the repository and run
pnpm install. This will install version3.7.0. - Run
pnpm lint. Everything should work fine. - Run
pnpm add -D [email protected]. - Run
pnpm lintand you will get a lint error.
✖ nx run my-lib2:lint
> eslint .
/Users/eran/estiller/eslint-import-resolver-issue/libs/my-lib2/src/lib/my-lib2.ts
1:23 error Unable to resolve path to module '@eslint-import-resolver-issue/my-lib' import/no-unresolved
✖ 1 problem (1 error, 0 warnings)
I'd appreciate any help. Thanks!
kristian-puccio, shandsaker113, roadan and andrewsmithdesign
Metadata
Metadata
Assignees
Labels
No labels