compiling-typescript
compiling-typescript copied to clipboard
Unexpected token 'export'
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,
Thanks man! This helped me 👍🏻
@stewstremel Huge help. Appreciated