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, newline, ... ### Expected Behavior Expression is evaluted in REPL after hitting "enter": ``` > 1 1 > ``` ### Actual Behavior Nothing happens, ts-node behavies...

The module [`ts-node/register`](https://github.com/TypeStrong/ts-node/blob/ddb05ef23be92a90c3ecac5a0220435c65ebbd2a/register/index.js) automatically registers `ts-node` with default options. This isn't documented in the README or API docs.

### Search Terms node:28410) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated. at Object.createResolve (/Users/tianyingchun/Documents/hyperse-internal/hyperse-backend/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:146:25) at /Users/tianyingchun/Documents/hyperse-internal/hyperse-backend/node_modules/ts-node/src/index.ts:1245:105 at Object.onceFn [as getNodeEsmResolver] (/Users/tianyingchun/Documents/hyperse-internal/hyperse-backend/node_modules/ts-node/src/util.ts:147:13) at createEsmHooks (/Users/tianyingchun/Documents/hyperse-internal/hyperse-backend/node_modules/ts-node/src/esm.ts:111:51) at Object.registerAndCreateEsmHooks (/Users/tianyingchun/Documents/hyperse-internal/hyperse-backend/node_modules/ts-node/src/esm.ts:106:10) at file:///Users/tianyingchun/Documents/hyperse-internal/hyperse-backend/node_modules/ts-node/esm.mjs:7:66 at ModuleJob.run...

### Desired Behavior [The `ignore` option](https://typestrong.org/ts-node/docs/scope) prevents transpilation of certain files, but those files will still be executed. I want a way to prevent file execution, too. ### Is this...

// tsconfig.json { "compilerOptions": { "target": "esnext", "module": "CommonJS", "types": ["node"], "strict": true, "jsx": "preserve", "importHelpers": true, "moduleResolution": "node", "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "sourceMap": true, "baseUrl": ".", "outDir":...

# Summary This PR implements what looks like the correct changes for ts-node to support specifying an swcConfig. Unfortunately, the version of yarn has a bug that won't download the...

- closes https://github.com/TypeStrong/ts-node/issues/2146. As noted in issue, settings conditions to `undefined` force disables all of node resolution features including import / export subpath map. (https://github.com/microsoft/TypeScript/blob/v5.7.2/src/compiler/moduleNameResolver.ts#L1787) PR sets an empty array...

### Search Terms tsconfig, extends, workspaces, exports, subpath ### Expected Behavior ts-node should able to resolve if `extends:` points to the workspace package have subpath exports map. ``` // Some...

### Search Terms ### Expected Behavior I expect ts-node to run src/index.ts without errors ### Actual Behavior ``` yarn run dotenv -e ../web/.env.local -- ts-node src/index.ts /home/ridhwaans/Source/test/.yarn/__virtual__/ts-node-virtual-c211acd0da/3/.yarn/berry/cache/ts-node-npm-10.9.2-3f3890b9ac-10c0.zip/node_modules/ts-node/dist/util.js:62 return value.replace(backslashRegExp, directorySeparator);...

I am not quite sure how to report this issue, but basically in production (in Sentry, specifically) we are getting stack traces that make no sense after the first frame....