You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.