-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
tsc
complains require()
file path outside of rootDir only when await import()
is used
#38611
Comments
I am seeing this bug triggered by a slightly different reason: adding an I have created a minimal reproduction here: https://github.com/TypeStrong/ts-node-repros/tree/ts-38611
|
@ychi your repro link seems to be not working, Can you please share the repro again. Thanks |
Actually @cspotcode repro seems to be working.. Thanks. |
TypeScript Version: 4.0.0-dev.20200516
Search Terms: commonjs, esmodule, rootDir
Code
Consider this file:
And this file:
Expected behavior:
Running
tsc
to compile them, they should both succeed or both fail?Actual behavior:
The first file can be compiled smoothly, while the second was complained about
error TS6059
anderror TS6307
.Playground Link: https://glitch.com/~aromatic-bittersweet-biplane
Related Issues:
The text was updated successfully, but these errors were encountered: