I get this error when I upload my site to my webserver:
http://desktop-gq7oerj:3000/sockjs-node/info?t=1489850537555 net::ERR_CONNECTION_REFUSED
my webpack config is:
entry: [
'webpack-dev-server/client?http://' + require("os").hostname() + ':3000/',
'webpack/hot/only-dev-server',
'./src/index'
],
How can I fix it?
In my case,it worked this => Here's a link
in webpack.config i aggregated :
devServer: {
socket: 'socket',
...
},
Try this
entry: production
? './src/index'
: [
`webpack-dev-server/client?http://0.0.0.0:${SETTINGS.PORT}`,
'webpack/hot/only-dev-server',
'./src/index',
],
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.