-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
page render fail when server api not ready. #20844
Comments
Nitro does not support top-level await. (Instead, you can use cc: @pi0 |
the key is why client hmr can't wait till nitro is ready? |
Would you provide a reproduction without using top-level await? 🙏 |
~> linking #13893 |
This problem appeared in an internal project with server/api, It hard to trace the real problem. |
Environment
Reproduction
https://github.com/transtone/vitesse-nuxt3
Describe the bug
If use top lever await in server api. On waiting, it will get a 500 page with message:
Cannot access 'renderer$1' before initialization
Additional context
No response
Logs
No response
relation issue:
#20576
The text was updated successfully, but these errors were encountered: