question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Native ESM support with ts-node on NodeJS with .mts files

See original GitHub issue

Could not find any config that would be suitable for ts-node usage that supports esm 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?

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:8
  • Comments:5

github_iconTop GitHub Comments

5reactions
testgitdlcommented, Sep 30, 2022

We also need a solution for this. Any idea when it will be available? Thank you!

0reactions
slavafomincommented, Dec 8, 2022

I’m writing an ESM migration guide and have stumbled upon this problem too. Has anybody found a solution for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - ECMAScript Modules in Node.js
Node.js supports a new setting in package.json called type . ... When a .ts file is compiled as an ES module, ECMAScript import...
Read more >
ESM support: soliciting feedback #1007 - TypeStrong/ts-node
Native ESM support, possibly requiring integration with ts-node ... Extenstionless main files and ES modules interaction nodejs/node#33223.
Read more >
TypeScript and native ESM on Node.js
In this blog post, I'll explain everything you need to know in order to use and produce native ECMAScript modules on Node.js.
Read more >
How we employed the new ECMAScript Module Support in ...
Recently, typescript (TS) announced the nodenext module support ... Nodejs allows us to specify different files for import and require .
Read more >
Options | ts-node
... to the node.js CLI. ts-node supports --project and --showConfig similar to the tsc CLI. ... Bootstrap with the ESM loader, enabling full...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found