-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sandbox] Vanilla TypeScript template yields ‘Unexpected keyword or identifier typescript(1434)’ error when using await
keyword
#8433
Comments
This happens on every project |
I wonder if that's even true. I haven't tested this rigorously, but I seem to remember forking an await-using sandbox like this one, and having it go from not working to… working. |
I'm taking a look. It looks like it only affects the TS language server, meaning that the editor is giving an error but the project should work as expected. |
This is so interesting! TypeScript just doesn't recognize the |
Wooow, I finally found the bug to this. Since TypeScript 5, TypeScript uses a keyword list for
|
Fix should be live now! |
Description of the problem
Using the ‘Vanilla TypeScript’ template and authoring a sandbox with the
await
keyword, I get this TypeScript error:How has this issue affected you? What are you trying to accomplish?
I can't create sandboxes that use async/await.
To Reproduce
https://codesandbox.io/p/sandbox/hungry-forest-7djrph
The text was updated successfully, but these errors were encountered: