Open zanekwok opened 4 months ago
@zanekwok bro, add this config in vite.config.js
server: {
port: 5173,
strictPort: true,
hmr: {
port: 5173,
},
},
@zanekwok bro, add this config in
vite.config.js
server: { port: 5173, strictPort: true, hmr: { port: 5173, }, },
This will crash browser on every background/index.js edit. Didn't find any better option though.
Uncaught (in promise) SyntaxError: Failed to construct 'WebSocket': The URL 'ws://localhost:undefined/' is invalid.