1 개요[ | ]
- Error: listen EADDRNOTAVAIL: address not available
2 vite 사례[ | ]
Console
Copy
vite v2.9.1 dev server running at:
> Local: http://localhost:3000/
> Network: http://135.79.246.80:3000/
ready in 322ms.
WebSocket server error:
Error: listen EADDRNOTAVAIL: address not available 180.246.91.35:80
at Server.setupListenHandle [as _listen2] (net.js:1314:21)
at listenInCluster (net.js:1379:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1516:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:73:8)
- server connection lost. polling for restart...에서 server.hrm.host와 server.hrm.port를 설정했더니 발생했다.
- server.hrm.port 대신 server.hrm.clientPort를 수정해보자.
JavaScript
Copy
// vite.config.js
export default defineConfig({
...
server: {
hmr: {
protocol: 'ws',
host: 'hello.example.com',
// port: 80,
clientPort: 80,
},
},
...
}
3 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.