fresh vuejs GET http://192.168.1.102:8080/sockjs-node/info?t=1608719207155 net::ERR_EMPTY_RESPONSE Error

Viewed 926

Hi i build a new vuejs project with "npm create test" and serve that with "npm run serve"

And the result was this

enter image description here

But when I go to the desired address in "http://localhost:8080/" I get these errors in the console:

enter image description here

I researched this topic and the way I was suggested was to edit the config file and add this section

devServer: {
host: "localhost"

}

And this is my whole config file

enter image description here

But my problems persisted

I'm new in vuejs and i hopeful that you can help me. Thanks.

3 Answers
  1. create a fill named "vue.config.js" in main root.

  2. add this scripts to the created fill:

    module.exports = {
    devServer: {
        host: 'localhost',
        hot: true,
        disableHostCheck: true,
        https: false
      }
    }
    

Maybe it's just due to a change of network, I think that if you restart the server or reconnect to original network it will dissapear.

Related