I'm currently working on setting up a VueJS frontend with a Go-powered backend using gorilla/mux as the router. So far, everything seems to be functioning well. I have a static HTML file served through Go and Vue components bundled with webpack (webpack-dev-server for now). However, an odd issue has arisen:
While my Vue components auto-refresh in the browser when saved, Firefox keeps displaying this message:
Firefox can’t establish a connection to the server at http://localhost:3000/__webpack_hmr.
I've attempted changing the port for the Go server, but the connection always fails at
http://localhost:<Go Server Port>/__webpack_hmr
.
Do you think I need to incorporate an Express server and use webpack-based Middleware to resolve this error? It feels counterintuitive to run two servers when I am utilizing Go for the backend. Am I overlooking something?
On the Go side of things, I've experimented with different ports for the servers, yet the connection issue persists at
http://localhost:<Go Server Port>/__webpack_hmr
. Is this setup more complex than anticipated, or is it safe to disregard the error since everything else appears to be operating correctly?