Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does '[WDS] Disconnected!' error mean with webpack and Vue.js?

I'm currently working on a Django project that uses Vue.js for the frontend. I keep getting the "[WDS] Disconnected!" error every time the page gets refreshed. That is, the website is fully functional and has no issues, but the error pops up for every time I reload the page.

[WDS] Disconnected!
close                webpack:///(webpack)-dev-server/client?:172
initSocket           webpack:///(webpack)-dev-server/client/socket.js?:26
dispatchEvent        webpack:///./node_modules/sockjs-client/dist/sockjs.js?:219
_close               webpack:///./node_modules/sockjs-client/dist/sockjs.js?:1097

I'm running the website on localhost:8000 and the frontend on port 8080 as a local grid instance with a certificate file set up.

Is this normal behavior? I tried updating npm like some suggested, but that didn't do anything.

Any help would be appreciated :)

like image 466
pure_Redwood Avatar asked Jul 16 '20 00:07

pure_Redwood


1 Answers

[WDS] is the Webpack Development Server. You see it on refresh, because the socket gets broken, which triggers the "error". Yes, it is normal behavior, and only shows when you are using the Webpack Development Server.

like image 107
NeoNexus DeMortis Avatar answered Sep 22 '22 08:09

NeoNexus DeMortis