-
-
Notifications
You must be signed in to change notification settings - Fork 535
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 .ts nested within a node_modules directory #956
Comments
Not a |
@underflow00 If I understand correctly, the TypeScript compiler refuses to compile anything inside a You can workaround this limitation by passing
EDIT: repro branch for future reference: https://github.com/TypeStrong/ts-node-repros/commits/956 |
I'm reopening this because I think it might be a ts-node problem, or at least something that we can fix on our end. Based on the issue linked here (#956 (comment)) it sounds like we can implement the host API's For example, if
|
Linking to a related TypeScript issue: microsoft/TypeScript#28432 (comment) The behavior proposed in that comment matches what I described in my previous comment. I'm not yet sure if Do we need to compute If we compute |
Expected Behavior
No errors.
Actual Behavior
"Unable to require file" error.
Steps to reproduce the problem
npm pack
) with the following files:npm-postinstall.ts
:package.json
:x.ts
:npm install package1-0.0.0.tgz
Works fine on Windows
Specifications
The text was updated successfully, but these errors were encountered: