vite-plugin-electron icon indicating copy to clipboard operation
vite-plugin-electron copied to clipboard

hotreload broken for renderer after adding WS dependency.

Open SamHoque opened this issue 1 year ago • 2 comments

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. (http://localhost:5173/@vite/client:480:13)

SamHoque avatar Jan 26 '24 20:01 SamHoque

Can you provide a minimal production repo?

caoxiemeihao avatar Mar 18 '24 02:03 caoxiemeihao

Got same errors with undefined port and broken WS connection. Everything had been fixed after upgrading to the most recent versions, particularly Vite 6

i7en0v91 avatar Feb 01 '25 13:02 i7en0v91