Skip to content

Unable to resolve aliased dependency from nested directory #361

Closed
@ehoogeveen-medweb

Description

@ehoogeveen-medweb

As of v3.8.0 some of my imports aren't resolving. It still happens as of v3.8.2 and doesn't seem like it's related to #359 as there are no dot directories involved.

Instead, a crucial component seems to be that the file attempting to resolve the aliased dependency must be nested a few levels deep. I'm not sure exactly what the conditions are, but I created a reproduction repo showing that it works with less nesting, but not with more.

Reproduction repo: https://github.com/ehoogeveen-medweb/unresolved-repro

To reproduce:

  • Clone the repo
  • Run npm ci
  • Run npx eslint .

Expected result:
No errors, as with version v3.7.0.

Actual result:

  • src/working.ts gives no errors
  • src/nested/broken.ts gives error Unable to resolve path to module 'ext/ua-parser.js'

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