-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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(hmr): upgrade http-proxy #2409
Conversation
Fix #2392 Upgrades http-proxy
Could you tell me how to reproduce it? I can't reproduce the issue to test this PR. |
Sure, in a fresh project: mkdir bug-vuepress
cd bug-vuepress
yarn init -y
yarn add vuepress --dev
mkdir docs
touch docs/README.md
yarn vuepress dev docs Open the docs in the browser, change anything in the I tried locally by building vuepress with this change and linking it and it fixed the problem. That being said, I didn't find a reason in http-proxy's changelog that would help understanding what broke it in the first place... |
I don't think it fixed that problem. |
The root problem is chokidar - I'm still trying to understand why chokidar v3 in watchpack breaks the functionality, but the problem lies there. |
Thanks for your detailed perspective. You're right. After deleting |
The bug is that vuepress/packages/@vuepress/core/lib/node/dev/index.js Lines 67 to 79 in c6a3cb5
The implementation in vuepress was never correct. It didn't listen to |
No, since all the export default {
"v-0c799b30": () => import("/.../@vuepress/core/lib/node/docs.fallback/README.md")
} all the md files will be included in the webpack compilation flow by default, we don't need watch it. This issue is actually introduced by this commit from
Closed as it was fixed by #2436. |
Fix #2392
Upgrades http-proxy
Summary
What kind of change does this PR introduce? (check at least one)
If changing the UI of default theme, please provide the before/after screenshot:
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
fix #xxx[,#xxx]
, where "xxx" is the issue number)You have tested in the following browsers: (Providing a detailed version will be better.)
If adding a new feature, the PR's description includes:
To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.
Other information: