-
-
Notifications
You must be signed in to change notification settings - Fork 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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bunx --bun vite preview
hangs on request
#12807
Comments
Related: oven-sh/bun#6638 |
https://nodejs.org/api/http.html#requestwritechunk-encoding-callback
So in Bun, looks like the data is not flushed entirely, then SvelteKit listens for When using Maybe https://nodejs.org/api/stream.html#event-drain
|
Sorry, but I'll be closing this issue because there isn't anything we should do on Kit's side of things. I think it's a very well investigated issue but better belongs in the Bun issue tracker. |
Describe the bug
I've traced the issue to here:
kit/packages/kit/src/exports/node/index.js
Lines 183 to 200 in 96642d2
In Bun,
done
never becomestrue
.In Node, it does and everything works fine.
If I add the following logs:
Node
Bun
Reproduction
Bun
Node
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: