I faced similar issue in react + ts. I had commented out all my code.
Turns out
A global file cannot be compiled using ‘–isolatedModules’. Ensure your file contains imports, exports, or an ‘export {}’ statement.
So, added something like:
export const foo = 'foo';
or
export {}
It’s a temporary solution, else you can delete the file with commented code or update tsconfig.json