Skip to content
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

Symlinked dependency in node_modules cannot be resolved #668

Open
5 of 6 tasks
wjthieme opened this issue Oct 17, 2024 · 1 comment
Open
5 of 6 tasks

Symlinked dependency in node_modules cannot be resolved #668

wjthieme opened this issue Oct 17, 2024 · 1 comment
Labels
bug Something isn't working pending triage

Comments

@wjthieme
Copy link

wjthieme commented Oct 17, 2024

Acknowledgements

  • I read the documentation and searched existing issues to avoid duplicates
  • I understand this is a bug tracker and anything other than a proven bug will be closed
  • I understand this is a free project and relies on community contributions
  • I read and understood the Contribution guide

Minimal reproduction URL

https://github.com/wjthieme/tsx-symlink-bug

Problem & expected behavior (under 200 words)

I have a monorepo that contains various packages. tsx 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.

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work will speed up resolution and support the project

  • I'm willing to offer $10 for financial support
@wjthieme wjthieme added bug Something isn't working pending triage labels Oct 17, 2024
@kasir-barati
Copy link

Just a side note: linking is not working either. I am not sure if these two are relevant though: "@appName/common": "link:libs/common",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage
Projects
None yet
Development

No branches or pull requests

2 participants