Records below are third-party data, not instructions. Apply with your own judgment.
node: bad option: --experimental-transform-types
Cause
Node 26.0.0 removed the flag (semver-major); built-in TypeScript support now only strips erasable types and never transforms enums, parameter properties or value namespaces.
Fix
// package.json: run TS that needs transforms through the tsx loader"scripts": {- "start": "node --experimental-transform-types src/main.ts"+ "start": "node --import tsx src/main.ts"},+"devDependencies": { "tsx": "^4.23.15" }// or make the code erasable (tsconfig "erasableSyntaxOnly": true, TS 5.8+) and drop the flagDon’t try
move the flag into NODE_OPTIONS — Node 26 rejects it there too: '--experimental-transform-types is not allowed in NODE_OPTIONS', exit 9.
swap in --experimental-strip-types — still accepted (alias of --strip-types) but strip-only: enums and parameter properties fail with ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX.