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

### Expected Behavior Running this with ts-node should work when `swc: true` is set: ```js import pkg from './package.json' with { type: 'json' } console.log(pkg) ``` ### Actual Behavior ```...

### Search Terms DeprecationWarning: fs.Stats ### Steps to reproduce the problem Warning only appears in node 22, node 21 is fine. ``` (node:4075381) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated. at...

### Search Terms ESM CJS mixed project SyntaxError: Named export not found. The requested module is a CommonJS module, which may not support all module.exports as named exports. ### Expected...

### Search Terms exports, package.json, tsconfig, extends, base config ### Description While tsc works and resolves the config files from the exports fields of the packages, ts-node fails. ### Expected...

### Search Terms Function: [nodejs.util.inspect.custom] ### Expected Behavior This bug arose after I renamed a base tsconfig-base.json file, and the `tsconfig.json` in my monorepo subdir was doing an `"extends": "../tsconfig-base.json"`....

Opening for feedback! It would be nice to pass ts-node options via the node `register` call. Enabling an entry point like the following: ```javascript import { register } from 'node:module'...

Last release was 6 months ago... is the project dead?

file:app.ts code: if (cluster.isPrimary) { cluster.fork() }else{ console.log("start") } The above code is run with the command: node-ts app.ts. It works well. But if you debug it through vscode and...

### Search Terms transpile-only tsconfig.json TS5109 ### Expected Behavior No error ### Actual Behavior TSError: ⨯ Unable to compile TypeScript: error TS5109: Option 'moduleResolution' must be set to 'NodeNext' (or...