https://stackoverflow.com/questions/55754906/errors-in-browser-console-requests-to-sockjs-node-infot-1555629946494
https://github.com/vuejs/vue-cli/issues/1616
I finally fixed it using the devServer.public
configuration option.
Below is my vue.config.js
file:
module.exports = {
devServer: {
disableHostCheck: true,
port: 4000,
public: '0.0.0.0:4000'
},
publicPath: "/"
}
I got my answer from reading this.
// NOTE: if 0.0.0.0 : 4000(port #) does not work, use localhost:4000 instead
No comments:
Post a Comment