-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't use top-level await in projects where you set es2020 or something #8435
Comments
Thanks for the report! Yes, this issue is a bit more tricky to solve. When we run a project, we transpile all code and run our own So this one is harder to solve right now. I would recommend converting to a devbox in the meantime to circumvent this issue. |
馃悰 bug report
Preflight Checklist
adheres to.
to file, without success.
Description of the problem
I can't use
await
e.g. if you open the Browser console you can do something pointless like
await console.log("HI")
and it won't throw an error.On Codesandbox you can't.
聽
Similar to #8433 except that it's for top-level await.
To Reproduce
https://codesandbox.io/p/sandbox/hungry-forest-forked-3ssrkq?file=%2Fsrc%2Findex.ts
https://codesandbox.io/p/sandbox/codesandbox-github-async-await-issue-7hpwm8
The text was updated successfully, but these errors were encountered: