codesandbox / codesandbox/codesandbox-client
Unexpected token 'export'
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Preflight Checklist
- I have read the [Contributing Guidelines][contributing] for this project.
- I agree to follow the [Code of Conduct][code_of_conduct] that this project
adheres to. - 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/init@12.x module.
How has this issue affected you? What are you trying to accomplish?
Makes running Angular 12 projects a bit annoying.
To Reproduce
- Run the following demo https://codesandbox.io/s/wonderful-driscoll-0uz7mo?file=/src/polyfills.ts
- Hit the reload button a few times
- Every second run fails with the same error.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the linked CodeSandbox and inspect src/polyfills.ts, where @angular/localize/init@12.x is imported. Reproduce the failure by reloading several times and trace why the intermittent Unexpected token 'export' occurs; done means repeated reloads complete without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100