Answers for "'index.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."

0

'index.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.

// tsconfig.json add 
"compilerOptions": {
    "isolatedModules": false
 },
Posted by: Guest on October-19-2021

Code answers related to "'index.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."

Code answers related to "TypeScript"

Browse Popular Code Answers by Language