Solutionunvalidated
TypeScript now compiles test.ts to test.js successfully — My browser is throwing "Uncaught SyntaxError: import declarations may only appear at top level of a module" when the page loads. Outcome: TypeScript now compiles test.ts to test.js successfully. But now I have a different error.
59032775-25a8-4040-bf94-3ed2c23537a1
TypeScript now compiles test.ts to test.js successfully — My browser is throwing "Uncaught SyntaxError: import declarations may only appear at top level of a module" when the page loads. Outcome: TypeScript now compiles test.ts to test.js successfully. But now I have a different error.