ts-node icon indicating copy to clipboard operation
ts-node copied to clipboard

TypeScript execution and REPL for node.js

Results 221 ts-node issues
Sort by recently updated
recently updated
newest added

### Search Terms * imports mapping * wildcard ### Expected Behavior The `imports` mapping key in `package.json` is a new way of specifying internal imports. I've noticed that `ts-node` does...

### Search Terms infinite loop breakEvalOnSigint break ### Expected Behavior As soon as Ctrl+C is pressed, eval should throw "Uncaught Error: Script execution was interrupted by `SIGINT`", as in default...

In the REPL, I can't enter or paste an object literal across multiple lines if it has to conform to an interface/type: immediately after the opening { it throws errors....

### Search Terms ERR_MODULE_NOT_FOUND ### Expected Behavior I am expecting ts-node to successfully compile and run. I also compile with tsc and then run the compiled code and it works...

See https://nodejs.org/en/blog/announcements/v19-release-announce/

### Search Terms sourcemap, source map, 20 ### Expected Behavior Source maps map the correct line even if the file has a newline (Which gets removed by tsc) ### Actual...

### Desired Behavior `ts-node` requires `--esm` if the target file is ES modules, and the name of the file ends with `.mts`, it must be an ES module. So I'd...

Hi! I am trying to add types for esm loader hooks in `@types/node`: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/65490 Would be great if you can try them with your code and provide some feedback. Thanks!

Pending https://discord.com/channels/508357248330760243/933130253692436560/1105333478138060862 Even if I don't keep this behavior, should at least merge the improved test-ability. Related to bullet point on https://github.com/TypeStrong/ts-node/issues/1505