Specify the module resolution strategy:
'node'for Node.js' CommonJS implementation'node16'or'nodenext'for Node.js' ECMAScript Module Support from TypeScript 4.7 onwards'classic'used in TypeScript before the release of 1.6. You probably won't need to useclassicin modern code
There is a handbook reference page on Module Resolution