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

fix: 修复vue-cli3.0项目端口被占用的bug #97 #101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Kntt
Copy link

@Kntt Kntt commented May 11, 2019

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? yes
New tests added? not needed
Fixed tickets comma-separated list of tickets fixed by the PR, if any
License MIT

Description

修复vue-cli3.0项目, 端口被占用的bug;
测试发现compiler.hooks.entryOption被执了两次,没找到执行两次的原因
于是:在createServer方法中判断插件的server是否被创建,没创建的时,
正常执行,创建过就什么都不做了

--

Please, don't submit /dist files with your PR!

@thisliuyang
Copy link

可以的,大神

@R-Von
Copy link

R-Von commented Jun 17, 2019

Nice 找了一下午的端口占用 终于解决

@Kntt
Copy link
Author

Kntt commented Jun 18, 2019

占用

这个有可能是webpack的bug, 之前没有这个问题, webpack的hook被执行了两次。
另外这个pr合并太慢了。。。。

@tsoil
Copy link

tsoil commented Jul 2, 2019

怎么解决

@gongph
Copy link

gongph commented Jul 17, 2019

@Kntt 请问合并了吗?

@Kntt
Copy link
Author

Kntt commented Jul 17, 2019

@gongph
还没呢, 一直没人处理呢

@gongph
Copy link

gongph commented Jul 17, 2019

@gongph
还没呢, 一直没人处理呢

我刚刚的做法是,把代码复制到 node_modules 源码里暂时启动了项目。/抱拳

@Kntt
Copy link
Author

Kntt commented Jul 17, 2019

@gongph
还没呢, 一直没人处理呢

我刚刚的做法是,把代码复制到 node_modules 源码里暂时启动了项目。/抱拳

这样可以暂时的解决, 每次install依赖都需要手动改一下, 可以暂时过渡用

@HiuYanChong
抽时间合并一下吧,困扰很多人了

@gongph
Copy link

gongph commented Jul 17, 2019

@Kntt 问个问题呗,预览界面啥都没有?
image

@gongph
Copy link

gongph commented Jul 17, 2019

查看控制台,是这个错:
image

@Kntt
Copy link
Author

Kntt commented Jul 22, 2019

@gongph 改完了得重新build

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

Successfully merging this pull request may close these issues.

None yet

6 participants