Add `esm` to `ts-node` flags
See original GitHub issueI’m trying to run
ts-node-dev --experimental-specifier-resolution=node --esm --transpile-only src/index.ts
I’m getting this message
bad option: --esm
https://github.com/wclr/ts-node-dev/blob/32bdc92458a59f66bcbd36e87de2a793f529a825/src/bin.ts#L11
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Configuration | ts-node - TypeStrong · GitHub
Configuration. ts-node supports a variety of options which can be specified via tsconfig.json , as CLI flags, as environment variables, or programmatically.
Read more >ts-node - npm
ts -node is a TypeScript execution engine and REPL for Node.js. It JIT transforms TypeScript into JavaScript, enabling you to directly execute ...
Read more >How to add --project flag to ts-node/register? #869 - GitHub
I want to compile ts-node with tsconfig.server.json instead of tsconfig.json . tsconfig.json is a default config for ts-node but server.ts needs ...
Read more >Getting Started with Executing TypeScript files in ts-node
Learn how to execute TypeScript Javascript files in ts-node but ... Run the following bash command to add the NodeSource PPA to your...
Read more >How To Run TypeScript Scripts with ts-node - DigitalOcean
With TypeScript being a superset of JavaScript, using it means compiling your TypeScript files down to pure JavaScript before the V8 engine can ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was able to get it working with ts-node and nodemon. I can’t yet speak for the speed, but it works:
This was taken from this thread: https://github.com/wclr/ts-node-dev/issues/314
Install esm loader package.