ts-node
ts-node copied to clipboard
TypeScript execution and REPL for node.js
### Search Terms input-type=module ### Expected Behavior ```bash ts-node -e "import 'package.json'" ``` import statements should work from CLI. ### Actual Behavior ``` node:internal/errors:490 ErrorCaptureStackTrace(err); ^ Error [ERR_INPUT_TYPE_NOT_ALLOWED]: --input-type can...
### Search Terms I think this is similar or related to https://github.com/TypeStrong/ts-node/issues/2031 and https://github.com/TypeStrong/ts-node/issues/2023 but not sure. ### Expected Behavior When running mocha and pulling in modules from between packages...
### Search Terms esm, external, exports, wildcard, extension ### Expected Behavior If a package defines an `exports` field ```json // foo_pkg/package.json "exports": { "./*.js": "./dist/*.js" } ``` And a consuming...
fix: bug with latest version of @swc/wasm causing "error when attempting to validate swc compiler options"; fixes https://github.com/TypeStrong/ts-node/issues/2059
### Search Terms - Typescript 5.0 - tsconfig extends array ### Expected Behavior No error. ### Actual Behavior ``` $ npm exec -- ts-node --esm --swc ./path/to/reproduce.mts /path/to/node_modules/ts-node/dist/util.js:62 return value.replace(backslashRegExp,...
### Desired Behavior Register the `ts-node/esm` loader using the `register` function. Example of use: `node --import=ts-node/esm-register` The content of the file would be something like this: ```js import { register...
### Search Terms - ERR_UNKNOWN_FILE_EXTENSION - Node.js 18.19.0 - Node.js 18.18.2 ### Expected Behavior `npx ts-node ` works on Node.js `18.19.0` just as it does with `18.18.2`. ### Actual Behavior...
### Search Terms esm, node 20, UnhandledPromiseRejection ### Expected Behavior I expect to see the type checking errors displayed in the console when using `ts-node` with esm support, providing information...
### Desired Behavior Should work exactly as node's `--import` flag, optionally an `-I` alias. ### Alternatives you've considered Running `node --loader ts-node/esm` with a local file path results in an...
### Search Terms line numbers Note that there is https://github.com/TypeStrong/ts-node/issues/1495, closed almost two years ago, long before Node v20 came out. I opened a new issue because (a) root causes...