多项目开发时, 端口占用问题
dfgong opened this issue · 8 comments
dfgong commented
hubcarl commented
@gongdf 是 Egg 项目还是纯前端项目?
dfgong commented
Egg 项目
dfgong commented
上面描述有问题,应该是只要配了port:9100,就会报那个错误,跟其他项目开不开没关系
hubcarl commented
@gongdf 我先看看
hubcarl commented
@gongdf proxy.host 手动指定一下
config.webpack = {
port: 9100,
proxy: {
"host": "http://127.0.0.1:9100",
},
},
hubcarl commented
@gongdf 问题找到了,指定端口时,proxy 的端口没有更新到, 重新安装一下 egg-webpack@4.5.1 依赖