-
-
Notifications
You must be signed in to change notification settings - Fork 537
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
Unable to require d.ts file in Lerna project #831
Comments
I was having the same issue and I solved it by adding |
That fixed it, thanks a lot. |
Confirmed. We upgraded to jest 24 and we ignored the ts-jest incompatibility issues. Then we upgraded ts-jest to 24 and got this error. I noticed the problem occurred in Linux (not Windows). Adding the We are using Lerna in a monorepo setup, if that helps. |
I've got a Lerna project with the following structure:
ComponentA
does depend onComponentB
, hence some files within it it import it viaWhen I try to use
ComponentA
now within thetest.ts
file (which is simply called viats-node test.ts
) I get the following error:There are currently no
.d.ts
files at all - but importing via relative paths works fine (e.g.import {whatever} from '../../ComponentB/...';
)ts-node version is
v8.0.3
.The text was updated successfully, but these errors were encountered: