-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Hot reload not working #2392
Comments
This comment has been minimized.
This comment has been minimized.
I have the same situation. After testing node v10.15.3 hot not working. Node v12.14.0 hot working |
I have the same problem too. |
Same here, not sure if it´s related to the latest Node v12.16.3 upgrade I've made, since in some projects (with similar packages structure and same pkgs versions) hot reloading still works. Very confused atm... |
I had the same problems a few days ago. I use a workaround to restart the server on file change. See here. |
I tried vuepress 1.4.1 with node 12.16.3 with a new install now -- and it vuepress does not recognize document changes (hot reload does not work). It looks like a regression in one of the dependencies --- so by loading the newer version of the dependency, the feature breaks. I don't know what package is broken. |
It seems that in its dependency chain, vuepress uses outdated packages for Here is my current install log:
As far as I see, the relevant messages are:
|
As I can see, |
Yes, this way is currently the most effective,and wait for the latest version to deal with this problem. I used the And use yarn add -D nodemon {
"scripts": {
"dev": "nodemon --ext md,vue --watch .vuepress --watch . --exec vuepress dev docs",
}
} |
Vuepress v1.4.0, hot reloading not working with node v14.3.0. Using nodemon isnt working either Edit: For some reason updating the config.js does trigger the hot reload, but nothing happens with the other files |
me too |
follow bug fixes... |
is there any working workaround (I would be willing to downgrade to older versions)... when was this broken? |
I have the same problem :( |
Thanks for filing the issue @reiwa! Going to take a look into this as a high priority. Appreciate it! |
Although it works, I have to refresh my browser for it to work |
"watchpack": "1.6.1" npm i -D [email protected] I noticed that the webpack hot update plugin npx vuepress info
Environment Info:
System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Binaries:
Node: 10.15.2 - D:\nodejs\version\node.EXE
Yarn: 1.22.4 - D:\YarnCache\bin\yarn.CMD
npm: 6.14.5 - D:\YarnCache\bin\npm.CMD
Browsers:
Edge: 44.18362.449.0
npmPackages:
@vuepress/core: 1.5.0
@vuepress/theme-default: 1.5.0
vuepress: ^1.5.0 => 1.5.0
npmGlobalPackages:
vuepress: Not Found
In a project created by |
@SCWR Thanks, it works. |
Thanks to @SCWR I got it working by downgrading watchpack to 1.6.1
Hope this helps to anyone struggling with the same problem |
I acquired new knowledge @ansky-pro Thanks |
Hello, For those who still want to use npm (resolutions only works with yarn by default). You can use this package : https://github.com/rogeriochaves/npm-force-resolutions. |
I think, a good solution would be to commit the |
Good job , Thanks |
Fixes hot reloading, details here: vuejs/vuepress#2392 (comment)
EDIT: Seen your issue |
Hi, I try to recreate a new project from scratch: I have the same observations as @tecnoloco :
My config.js file is as simple as:
Thanks |
I tried everything in the above. But its not working for me too in windows. The terminal log updates and says build is finished. But its not updating in server. Even refresh not working. had to terminate the job and run Please provide me a fix. |
Hi @surjithctly! We're tracking the bug regarding the config and frontmatter here: #2437 Are you still having issues with the markdown files not reloading? |
@bencodezen Yes. Markdown works fine. The data inside |
@surjithctly Got it. I would definitely add your comments and threads to #2437 then. Thank you! |
webpack downgraded to 1.6.1, but still not working.
|
Same here, frontmatter in .md does not work. Here is my info Environment Info: System: |
Try If yes you could write this into package.json: |
Tried that, even blew away my node_modules an yarn lock and reinstalled, same issue.. :-( |
Any updates. I'm having the same problem. Using |
Evan is now making a new tool to solve it... |
Does not work for me I’m on 12.13.1
…Sent from my iPhone
On Jul 17, 2020, at 4:02 AM, andrea-ccc <[email protected]> wrote:
Hi guys, just trying vuepress (v.1.3.1) on Node.js v12.18.2 and having the same problem.
Rolling back to Node.js v12.13.1 solved the issue.
Hope that helps.
Note: I always manage Node.js via nvm<https://github.com/nvm-sh/nvm>, so changing versions just for a project or even a session is pretty easy.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#2392 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADI5LVNR7D2XH3WAJPLDQBLR4AARJANCNFSM4NDVEPSQ>.
|
That’s an awesome news. Thanks for letting me know. |
* fix: watch for chokidar v3 * chore: remove comments
This worked for me using 1.7.1 and npm, Windows 10. I don't know why or what it does. |
This works for me as well for config.js changes but not for index.md changes. Also running on Windows 10 with Node 14.15.0. |
If you are not strictly using vue 2, try vuepress 2 or vitepress. |
what's the difference between these two btw? Which one is official, or both?@meteorlxy |
Both are vue.js team projects |
Gracias me funciono lo del .md y config. :) |
For whom does not use yarn but npm, "ovverides" should be the analogue |
I added the resolutions section to package.json. Still broken. Ouch. |
Bug report
Steps to reproduce
What is expected?
Vuepress CLI detects file changes and rebuilds.
What is actually happening?
Vuepress CLI doesn't detect file changes. I have to run
vuepress dev docs
again to build codes.Other relevant information
npx vuepress info
in my VuePress project:The text was updated successfully, but these errors were encountered: