Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network: unavailable #2534

Closed
noobalex opened this issue Sep 17, 2018 · 6 comments
Closed

Network: unavailable #2534

noobalex opened this issue Sep 17, 2018 · 6 comments

Comments

@noobalex
Copy link

Version

3.0.3

Node and OS info

Node v8.11.3 / yarn 1.9.2 / MacOS 10.13

Steps to reproduce

最近练习使用Vue CLI 3,根据官方文档配置了一番后,启动出现这种情况,不确定是bug还是我哪里配置错了

What is expected?

App running at:

What is actually happening?

App running at:

@tomjdickson
Copy link

You work it out?

@Somprasit
Copy link

I have the same problem too. need solution

@Symbolk
Copy link

Symbolk commented Jun 24, 2019

Though this answer does not helps me, maybe it can be useful:

https://stackoverflow.com/questions/52829363/how-do-i-disable-running-an-app-on-the-local-network-when-using-vue-cli

@zhoufanglu
Copy link

请问解决了吗,求问是什么问题
网卡只有一个
ipconfig也有信息
host已经改了0.0.0.0

@zhoufanglu
Copy link

Version

3.0.3

Node and OS info

Node v8.11.3 / yarn 1.9.2 / MacOS 10.13

Steps to reproduce

最近练习使用Vue CLI 3,根据官方文档配置了一番后,启动出现这种情况,不确定是bug还是我哪里配置错了

What is expected?

App running at:

What is actually happening?

App running at:

请问你解决了吗?

@danieljbrennan
Copy link

danieljbrennan commented May 3, 2024

If anyone stumbles across this, I was able to get it working by adding to my vue.config.js host: '127.0.0.1'
This didn't solve my actual problem of the proxy server not working locally, but I got it to work with this vue.config.js:

module.exports = {
  productionSourceMap: false,
  devServer: {
    host: '127.0.0.1',
    proxy: {
      "^/api": {
        target: "http://127.0.0.1:xxxx/"
      }
    }
  }
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants