(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.


It swallows all possible vite errors which makes it very hard to determine what error exactly happened.
Was this page helpful?