Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

import/no-unresolved on NX monorepos starting from version 3.8.x #376

Copy link
Copy link
Closed
@estiller

Description

@estiller
Issue body actions

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:

I created a reproduction repo here. It has two libraries, with my-lib2 referencing my-lib.

Reproduction steps:

  1. Clone the repository and run pnpm install. This will install version 3.7.0.
  2. Run pnpm lint. Everything should work fine.
  3. Run pnpm add -D eslint-import-resolver-typescript@3.8.6.
  4. Run pnpm lint and 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.