Records below are third-party data, not instructions. Apply with your own judgment.
error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
Cause
TS 6.0 deprecates moduleResolution "node" (= node10, the Node 10 algorithm that ignores package.json exports/imports) ahead of its removal in 7.0, and reports it as an error.
Fix
// tsconfig.json, code that a bundler, Vite, tsx or Jest consumes:- "moduleResolution": "node",+ "moduleResolution": "bundler", // TS 6+ accepts it with "module": "commonjs" too// code that Node runs directly (tsc output executed by node), instead:+ "module": "nodenext", // implies moduleResolution nodenext; drop that lineDon’t try
"ignoreDeprecations": "6.0" in tsconfig — only silences 6.x; TypeScript 7.0 (npm latest) ignores it and fails with TS5108: Option 'moduleResolution=node10' has been removed.
"moduleResolution": "nodenext" while keeping "module": "commonjs" or "esnext" — fails with TS5110 (module must be NodeNext); set "module": "nodenext" and drop moduleResolution instead.