danielstern / compiling-typescript

A Simple, Extensible TypeScript Application
35 stars 20 forks source link

Unexpected token 'export' #3

Open stewstremel opened 3 years ago

stewstremel commented 3 years ago

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,

rushabh-wadkar commented 3 years ago

Thanks man! This helped me 👍🏻

cayton10 commented 3 years ago

@stewstremel Huge help. Appreciated