Skip to content

Symlinked dependecy in node_modules cannot be resolved #91

@wjthieme

Description

@wjthieme

I have a monorepo that contains various packages (built and tied together using nx). ts-mocha cannot resolve a package's dependencies on another local package.

For example:

- @org/a
  - foo.ts
- @org/b
  - node_modules (contains symlink for @org/a)
  - bar.ts (which imports from @org/a)
  - bar.test.ts (tests some function in bar.ts)

The error that ts-mocha throws is ERR_UNKNOWN_FILE_EXTENSION. If you remove the import from @org/a in bar.ts the same tests runs without issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions