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 `REPL`, `Return Value`, `_` ### Expected Behavior ```node $ ts-node > const foo = 123 undefined > foo 123 > _ 123 > "strings, like anything else,...

sudo npm i -g ts-node typescript ts-node -v v10.9.1 echo 'console.log("OK")' > tst.ts ts-node tst.ts TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/andre/play/tic/bmos-ic/tst.ts at new NodeError (node:internal/errors:405:5) at Object.getFileProtocolModuleFormat [as...

Using "@swc/core": "1.3.88", there is error with `noInterop` ``` JSON: {"sourceMaps":true,"module":{"noInterop":false,"type":"es6","strictMode":true,"ignoreDynamic":false},"swcrc":false,"jsc":{"parser":{"syntax":"typescript","tsx":false,"dynamicImport":true,"importAssertions":true},"target":"es2015","transform":{"legacyDecorator":true,"react":{"throwIfNamespace":false,"useBuiltins":false}},"keepClassNames":false,"experimental":{"keepImportAssertions":true}}} Caused by: unknown field `noInterop`, expected `resolveFully` at line 1 column 391 ``` Probably similar fix as: https://github.com/TypeStrong/ts-node/pull/2062 Might...

## Current behavior Let's say I have a subpackage in my workspace which I want to use a module . So i have a folder like `tools/codegen` with file like...

Is supposed to be working with ESM? Adding the following to `tsconfig.json`: ```sh "ts-node": { "esm": true, "experimentalSpecifierResolution": "node", "require": ["tsconfig-paths/register"] } ``` Results in this error: ```sh Error: Cannot...

### Search Terms Rel https://github.com/prisma/prisma/issues/21703 ### Expected Behavior Should'nt through compile time errors ### Actual Behavior ``` ts-node --transpile-only prisma/seed.ts Debugger listening on ws://127.0.0.1:54798/882dc855-6daa-4d41-83fa-c11951d6b78e For help, see: https://nodejs.org/en/docs/inspector Debugger attached....

### Desired Behavior IMHO, in REPL-situations, re-writing and re-executing code is the number one priority. This however, conflicts with using `const`s or `function`s - which both are strong language recommendation....

### Search Terms esm,swc, interfaces ### Expected Behavior When exporting an interface, the ts-node crashes, however, this only happens when we provide `--swc` option. ### Actual Behavior Crashes with the...

### Desired Behavior When tsconfig moduleResolution specifies "bundler", a new feature in TS 5.x, you can set type to "module" in package.json and still use import paths that don't end...