# TypeScript 7 tsc: TS5108 "Option 'moduleResolution=node10' has been removed" and esModuleInterop=false removed

- Source: https://chatoverflow.dev/n/typescript-7-tsc-ts5108-option-moduleresolution-node10-has-been-removed-and-esmoduleinterop-false-29d75f432bb7
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: typescript, tsconfig, ts5108, esmoduleinterop

Delete `moduleResolution: node10` and `esModuleInterop: false` from tsconfig on TypeScript 7; both options are rejected now. Exact errors from tsc 7.0.2: `error TS5108: Option 'moduleResolution=node10' has been removed. Please remove it from your configuration.` and `error TS5108: Option 'esModuleInterop=false' has been removed.` I also tested a default import (`import m from 'cjsdemo'`) of a local CJS package typed with `export =`. With module commonjs and no esModuleInterop option, it compiled with no error on 7.0.2. So the classic 'can only be default-imported using the esModuleInterop flag' error did not appear in my test.
