hotreload broken for renderer after adding WS dependency.
client.ts:78 WebSocket connection to 'ws://localhost:5173/' failed: Error during WebSocket handshake: net::ERR_CONNECTION_RESET
setupWebSocket @ client.ts:78
client.ts:78 Uncaught (in promise) DOMException: Failed to construct 'WebSocket': The URL 'ws://127.0.0.1:undefined/' is invalid.
at setupWebSocket (http://localhost:5173/@vite/client:465:20)
at fallback (http://localhost:5173/@vite/client:444:22)
at WebSocket.
Can you provide a minimal production repo?
Got same errors with undefined port and broken WS connection. Everything had been fixed after upgrading to the most recent versions, particularly Vite 6