compiling-typescript icon indicating copy to clipboard operation
compiling-typescript copied to clipboard

Unexpected token 'export'

Open stewstremel opened this issue 5 years ago • 2 comments

With typescript ^4.0.5 the compiler is creating an empty "export {}" in the transpiled client.js file and the browser fails to load the code and issues a "typescript Uncaught SyntaxError: Unexpected token 'export'".

Suggest changing the /public/index.html to include the module type:

Cheers,

stewstremel avatar Nov 10 '20 12:11 stewstremel

Thanks man! This helped me 👍🏻

rushabh-wadkar avatar Dec 14 '20 16:12 rushabh-wadkar

@stewstremel Huge help. Appreciated

cayton10 avatar Jun 09 '21 21:06 cayton10