-
Notifications
You must be signed in to change notification settings - Fork 105
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
Native ESM support with ts-node on NodeJS with .mts files #221
Comments
if you don't care about the paths in particular you could follow the setup in this (not mine) example repo https://github.com/felipeplets/esm-examples Have a look at the linked stackoverflow answer too. See my (currently) open PR regarding the need for a specific flag for node-ts to work with relative imports too. |
@einSelbst actually I tried to care about paths that were specified in And the problem is that currently |
@andriichern there is also https://www.npmjs.com/package/@swc-node/core which seems to support paths but I haven't used it myself. Don't know anything about VSCode support or handling of mts files tough. |
We also need a solution for this. Any idea when it will be available? Thank you! |
I'm writing an ESM migration guide and have stumbled upon this problem too. Has anybody found a solution for this? |
Could not find any config that would be suitable for
ts-node
usage that supportsesm
modules.Would appreciate any links on how to set up
tsconfig-paths
together with--loader ts-node/esm
option.If no do you plan to support new
.mts
and.cjs
file extensions?The text was updated successfully, but these errors were encountered: