Frappe UI setup Error: connect ECONNREFUSED

i am trying to setup frappe ui according the its doc but i am getting the following error from the dev server:
5:29:23 PM [vite] http proxy error: Error: connect ECONNREFUSED ::1:8010 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1532:16) (x3)
my frappe site is listening on port 8010 and the vite dev server on port 8080
i can see the frontend on port 8080 with the send ping button but when clicking on it the browser is sending the following request (according to the browser network inspector)
http://localhost:8080/api/method/ping which is not my backend endpoint
i double check my vite config it appears to be ok

could you help please

I found the solution, it seems to be a Vite bug,
within the file vite-dev-server.js within frappe-ui package i replaced the localhost by ‘’


It can also typically happen with a node version mismatch. Frappe @latest recommends Node.js version 16. How localhost in proxies are resolved (needed in frappe ui) changed in v17 of node.

This can still break at times from what I found. File an issue if you bump into issues with this please. :grin: