danielstern / danielstern/compiling-typescript

Unexpected token 'export'

Open
#3 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
35
Forks
20
PR merge metrics
No merged PRs in 30d

Description

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,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.