codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

Unexpected token 'export'

Open tapopov opened this issue 3 years ago • 1 comments
trafficstars

🐛 bug report

Preflight Checklist

  • [x] I have read the [Contributing Guidelines][contributing] for this project.
  • [x] I agree to follow the [Code of Conduct][code_of_conduct] that this project adheres to.
  • [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Description of the problem

SyntaxError Unexpected token 'export' is thrown every other run, when importing @angular/localize/[email protected] module.

How has this issue affected you? What are you trying to accomplish?

Makes running Angular 12 projects a bit annoying.

To Reproduce

  1. Run the following demo https://codesandbox.io/s/wonderful-driscoll-0uz7mo?file=/src/polyfills.ts
  2. Hit the reload button a few times
  3. Every second run fails with the same error.

tapopov avatar Jun 01 '22 11:06 tapopov

Hey @tapopov - I'm getting this error while running the Sandbox: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://unpkg.com/[email protected]/lib/typescript.js' failed to load.

Have you made any changes?

JamesACS avatar Jul 28 '22 14:07 JamesACS