We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Explicit import extension seems the ONLY convenient way to write dual module in typescript, supported by tsc.
tsc
$ ts-node a.ts 42
$ ts-node a.ts Error: Cannot find module './b.js'
// a.ts import b from './b.js' console.log(b)
// b.ts export default 42
{}
The text was updated successfully, but these errors were encountered:
Will be resolved by #1361
Sorry, something went wrong.
Closing as implemented already in recent releases of ts-node. Depending on your project, you might need to enable experimentalResolver: true
experimentalResolver: true
Successfully merging a pull request may close this issue.
Search Terms
Why explicit extension
Explicit import extension seems the ONLY convenient way to write dual module in typescript, supported by
tsc
.Expected Behavior
$ ts-node a.ts 42
Actual Behavior
$ ts-node a.ts Error: Cannot find module './b.js'
Steps to reproduce the problem
Minimal reproduction
Specifications
The text was updated successfully, but these errors were encountered: