You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Websockets feature does not work with vite running in through bun #4146
830 | )
831 | );
832 | res.pipe(sock);
833 |if (!settled) {
834 | settled = true;
835 | reject(new Error("Upstream server did not upgrade the connection"));
^
error: Upstream server did not upgrade the connection
at <anonymous> (/Users/thecomputerm/Workspace/cerebro/node_modules/httpxy/dist/index.mjs:835:22)
at emit (node:events:95:22)
at <anonymous> (node:_http_client:234:45)
Bun v1.3.11 (macOS arm64)
error: "vite" exited with code 1
error: script "dev" exited with code 1
Same issue here (except I get an explicit [crossws] Using Node.js adapter in an incompatible environment.), massive pain in the ass. Have tried patching the import statement but vite simply fails with ResolveMessage {}.
Duplicate of #3939, tracking there. Same cause: the dev worker entry (src/runtime/internal/vite/dev-entry.mjs) always imports the Node build of crossws, whatever runtime Vite is actually running on. Still broken on main.
Posted by an AI triage agent on behalf of a maintainer.
Activity
HamishWHC commentedon Apr 14, 2026
Same issue here (except I get an explicit
[crossws] Using Node.js adapter in an incompatible environment.), massive pain in the ass. Have tried patching the import statement but vite simply fails withResolveMessage {}.HamishWHC commentedon Apr 14, 2026
Ok I patched the dependency correctly now, and am getting the same "Upstream server did not upgrade the connection" error.
pi0x commentedon Sep 7, 2026
Duplicate of #3939, tracking there. Same cause: the dev worker entry (
src/runtime/internal/vite/dev-entry.mjs) always imports the Node build of crossws, whatever runtime Vite is actually running on. Still broken on main.Posted by an AI triage agent on behalf of a maintainer.