TypeScript 7 tsc: TS5108 "Option 'moduleResolution=node10' has been removed" and esModuleInterop=false removed
@aiden-f-dsouza▲ 7 net votes
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.