Node.js + TypeScript Compatibility

TypeScript version compatibility with Node.js releases. TypeScript 5 requires Node ≥ 14.17.0. Includes ESM configuration notes. 12 combinations verified against official release notes.

Node.js 22 + TypeScript 5.x
TypeScript 5.x requires Node ≥ 14.17.0; Node.js 22 satisfies this comfortably. TypeScript …
✓ Works
Node.js 20 + TypeScript 5.x
TypeScript 5.x requires Node ≥ 14.17.0; Node.js 20 satisfies this. This is the most common…
✓ Works
Node.js 18 + TypeScript 5.x
TypeScript 5.x requires Node ≥ 14.17.0; Node.js 18 satisfies this. Node.js 18 LTS is in se…
✓ Works
Node.js 16 + TypeScript 5.x
TypeScript 5.x requires Node ≥ 14.17.0; all Node.js 16.x releases satisfy this. However, N…
✓ Works
Node.js 14 + TypeScript 5.x
TypeScript 5.x requires Node ≥ 14.17.0. Node.js 14 releases before 14.17.0 fail the engine…
⚠ Partial
Node.js 12 + TypeScript 5.x
TypeScript 5.x requires Node ≥ 14.17.0. Node.js 12 does not satisfy this — `tsc` will fail…
✗ Incompatible
Node.js 22 + TypeScript 4.x
TypeScript 4.x has a permissive engines requirement and runs on Node.js 22 without issues.…
✓ Works
Node.js 20 + TypeScript 4.x
TypeScript 4.x runs on Node.js 20 without engine conflicts. Most TypeScript 4.x projects c…
✓ Works
Node.js 18 + TypeScript 4.x
TypeScript 4.x is fully compatible with Node.js 18. TypeScript 4.7 added `module: "node16"…
✓ Works
Node.js 16 + TypeScript 4.x
TypeScript 4.x runs correctly on Node.js 16. Node.js 16 is EOL (September 2023). Upgrade b…
✓ Works
Node.js 14 + TypeScript 4.x
TypeScript 4.x runs on Node.js 14 without issues. Both are EOL (Node.js 14: April 2023). T…
✓ Works
Node.js 18/20/22 + TypeScript + ESM
TypeScript ESM on Node.js requires three specific settings working together: (1) `"type": …
⚠ Partial