ts-node
ts-node copied to clipboard
TypeScript execution and REPL for node.js
### Search Terms ".default is not a constructor" ### Expected Behavior Can instantiate class instance even if there is a json file with the same name as the class ###...
Check if 18.7.0 fixes the bug in 18.6.0. If so, remove hack here: https://github.com/TypeStrong/ts-node/blob/8b09d49b26c1c25e34133b857c073729dd691f11/src/bin.ts#L633
Add clarification that ESM is not supported in programmatic usage due to a limitation on node's side. See this discussion: https://github.com/TypeStrong/ts-node/discussions/1798 Because I just lost a good hour getting this...
### Search Terms `code`. Found [this](https://github.com/TypeStrong/ts-node/issues/1586) but not sure if related. ### Expected Behavior When wrapping an import with try/catch, and when pointing the import to a TS file that...
### Search Terms `repl` `repl.start()` `context` `double` `STDIN` `STDOUT` ### Expected Behavior STDOUT _is not_ double printed ### Actual Behavior STDOUT _is_ double printed ### Steps to reproduce the problem...
### Search Terms Node, ERR_UNKNOWN_FILE_EXTENSION ### Expected Behavior Fix it ### Actual Behavior see Minimal reproduction ### Steps to reproduce the problem see Minimal reproduction ### Minimal reproduction ```console $...
First of all ,I already looked at https://github.com/TypeStrong/ts-node/issues/1997 and most of other websites to solve the problem but I couldn't.This error is throwed when I try to use in Node...
Register `ts-node/esm` loader programmatically using `register` fn. See issue #2072
### Search Terms ts-node E:XXXXX\nodejs\node_modules\typescript\lib\typescript.js:139 for (let i = startIndex ?? 0; i < array.length; i++) { ^ SyntaxError: Unexpected token ? at new Script (vm.js:79:7) at createScript (vm.js:251:10) at...
### Desired Behavior since v:20.6.0, nodejs natively supports .env files for loading environment variables. I use ts-node for development purposes and intend to not use dotenv package. ### Is this...