Open RyanAtViceSoftware opened 5 years ago
Can't reproduce locally. Maybe it's due to bad cookies on the localhost:8080
domain? Have you tried to open it in an incognito window?
@sodatea thanks but that doesn't make a difference for me
I downloaded a Vue CLI based app from Vue Mastery and same thing
Does any of the replies help? https://github.com/webpack/webpack-dev-server/issues/183
Likely to be a network setting issue but I've no idea why.
Hello! This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues requiring feedback after 20 days of inactivity. It’s been at least 10 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. (A maintainer can also add the label not stale
to keep this issue open.)
Thanks for being a part of the Vue community! 💪💚️
@sodatea thanks for the reply and sorry for the delayed response but none of the suggested fixed mentioned there worked for me. Also note that I can open http://localhost
for create-react-app
based apps so this is something specific to what vue-cli
is doing in it's configurations and maybe some incompatibility with mac??? not sure about that second part. But localhost works on my mac book for other things.
@sodatea I'm experiencing the exact same issue as @RyanAtViceSoftware. I'm on macOS Mojave 10.14.6, and am working with Vue cli 4.0.5. I've reproduced the issue in Chrome 78.0.3904.70, Firefox 69.0.3, Opera 62.0.3331.119, and Safari 13.0.3 (14608.3.10.10.1). I also can open http://localhost for other apps and open the ip-based link provided by Vue. The suggested fixes mentioned also did not work for me.
I'm also on macOS Mojave 10.14.6 and @vue/cli 4.0.5, I had the same issue. I am not entirely sure why I had the issue. For some reason, port 8080 is being blocked.
Anyway, I worked around this by changing the port.
In your vue.config.js
, add the following to change the port:
module.exports = {
devServer: {
// other config
port: 8081 // or any other port you wish to use other than 8080
}
}
After that it worked for me.
Hi! I'm experiencing the same problem on Catalina. Same symptoms, anything can work on 8080 except vue server. lsof -nP -iTCP:8080 | grep LISTEN
shows that vue listens to the port but no response is visible in browser
Hi, I'm also experiencing same issue, however, the apps works on 127.0.0.1:8080 and not localhost, in most cases this should at least unblock me but the APIs are configured on localhost:8080. hence need a fix for this. After changing the port to 8081, the localhost is working.
https://github.com/webpack/webpack-dev-server/issues/183 This issue also looks similar to the webpack-dev-server issue. People seemed to have resolved the issues themselves there, but the provided solutions didn't work for me. Posting it here, as it might help someone else.
Hi! I'm experiencing the same problem on Catalina. Same symptoms, anything can work on 8080 except vue server.
lsof -nP -iTCP:8080 | grep LISTEN
shows that vue listens to the port but no response is visible in browser
I also faced the problem same problem on Mac Catalina, it worked on ip but not working on localhost, then I recognize I did not install vue-cli, after install it working.
I faced that problem, and for me, it worked using chrome rather than firefox.
I'm using WSL2 with Ubuntu 20 and localhost:8080 doesn't work, only the network access. Wanted to add this cause most people here seem to be using mac.
Version
3.10.0
Reproduction link
https://github.com/RyanAtViceSoftware/vue-localhost-error-example
Environment info
Steps to reproduce
yarn serve
http://localhost:8080/
What is expected?
App to be shown
What is actually happening?
Get "Page isn't working" error
Browsing to
http://192.168.1.3:8080/
works