(node:53181) Warning: An error event has already been emitted on the socket.

Has anyone ever encountered the problem:
VITE v4.5.2 ready in 435 ms

Local: http://localhost:3000/
Network: use --host to expose
press h to show help
(node:53181) Warning: An error event has already been emitted on the socket. Please use the destroy method on the socket while handling a 'clientError' event.
(Use `node --trace-warnings ...` to show where the warning was created)
error Command failed with exit code 1.
VITE v4.5.2 ready in 435 ms

Local: http://localhost:3000/
Network: use --host to expose
press h to show help
(node:53181) Warning: An error event has already been emitted on the socket. Please use the destroy method on the socket while handling a 'clientError' event.
(Use `node --trace-warnings ...` to show where the warning was created)
error Command failed with exit code 1.
It swallows all possible vite errors which makes it very hard to determine what error exactly happened.
1 Reply
Bersaelor
Bersaelor4mo ago
Ah, figured it out, it's a very cryptic way of telling me I tried accessing https://localhost:3000/ via SSL.