-
-
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
verbatimModuleSyntax w/transpileOnly raises diagnostic error #1971
Comments
I think ts-node does not add support for typescript v5 right now, so I think maybe this should be a feature request supporting typescript v5. |
Do we want to rename this to the general TypeScript 5 support issue, then? Or would we prefer another? |
Some TS 5.0 stuff has already merged, such as #1958. It still needs to be published, but in the meantime, enterprising users can install ts-node directly from git. Our nightly automated tests also run against TS 5.0, so most things already work. This looks specifically like an issue with Is anyone able to test some short-term workarounds? Short-term workarounds are not mutually exclusive with making the necessary code changes and publishing a new version of ts-node. Here is a workaround that I have not had time to test, please let us know if it works for you: Workaround: add
|
Notes for getting a fix implemented in ts-nodeWe ship our own version of TS's This will need to be synced up with recent updates to At the time that PR was written, Our automated tests also test against older TS versions, so they'll flag any potential incompatibilities with the oldest version of TS that we support. |
Search Terms
isolatedModules, verbatimModuleSyntax
Expected Behavior
Ts-node should work with
verbatimModuleSyntax: true
.Actual Behavior
With the new config flag,
ts-node
fails to load any TS files with the following error:Steps to reproduce the problem
Run
node --loader ts-node/esm ./test.ts
(wheretest.ts
) is any ts file whenverbatimModuleSyntax: true
is set.Minimal reproduction
https://gist.github.com/Jamesernator/5c4598178a4f4c3ce6961aa052a48d2a
Specifications
*ts-node v10.9.1
The text was updated successfully, but these errors were encountered: