-
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
No such file: node_modules/@vuepress/core/.temp/app-enhancers/global-components-2.js
#2254
Comments
May relate to #1283 |
First met this issue in latest versions. |
@ulivz 诈尸了 😈 |
The initial build works fine for me, but I get this as soon as I make any incremental change to the theme. Errors in the browser: Environment Info:
|
@Actimia , did you find any workaround? I have same issue, tested on versions > 1.0 |
Did anybody found a solution to this ? I'm having the very same issue. @alex-outsourci It also works well with pre v1.0.0 versions. |
I encountered the same problem.
|
I'm having the same issue. |
Having the same issue, it's a bit annoying when hot reloading stops working |
Any solution for this issue? |
大佬们解决了没,我最近两周出的这个问题 |
Same issue here. Tried upgrading to node 14.5.0 still it persists. |
Same issue here. |
I had the same issue, mitigated by specifying a different temp folder.
Not sure why though |
Tried to pass temp arg but it is not working for me, I still have this error :/. |
Specifying the temp dir also did not fix it for me. I started vuepress dev in debug mode and the createTemp.js utility is called when I make changes. This utility also happens to empty the contents if it exists. The contents are the repopulated but perhaps not before webpack needs it to rebuild? Could be a timing problem. If I comment out line 23 in ./node_modules/@vuepress/core/lib/node/createTemp.js I'm sure there are some repercussions of this but maybe it can point someone in the right direction for a real fix. |
Same issue |
Yeah, the
have to manually refresh the browser to see the changes, but at least it would not error 😞 |
Calling emptyDirSync every time createTemp is called - i.e, every time App.process is called; i.e., every time source files update - throws off webpack-dev-server, causing it to lose track of the source files and subdirectories. This leads to a variety of sporadic errors and breaks auto-refresh of frontmatter and configuration. Fix this by avoiding emptying temporary directories when we can detect that they were previously initialized by the same instance of the VuePress process. Fixes vuejs#1283. Fixes vuejs#2233. Fixes vuejs#2254. Fixes vuejs#2437.
Calling emptyDirSync every time createTemp is called - i.e, every time App.process is called; i.e., every time source files update - throws off webpack-dev-server, causing it to lose track of the source files and subdirectories. This leads to a variety of sporadic errors and breaks auto-refresh of frontmatter and configuration. Fix this by avoiding emptying temporary directories when we can detect that they were previously initialized by the same instance of the VuePress process. Fixes vuejs#1283. Fixes vuejs#2233. Fixes vuejs#2254. Fixes vuejs#2437.
Calling emptyDirSync every time createTemp is called - i.e, every time App.process is called; i.e., every time source files update - throws off webpack-dev-server, causing it to lose track of the source files and subdirectories. This leads to a variety of sporadic errors and breaks auto-refresh of frontmatter and configuration. Fix this by avoiding emptying temporary directories when we can detect that they were previously initialized by the same instance of the VuePress process. Fixes vuejs#1283. Fixes vuejs#2233. Fixes vuejs#2254. Fixes vuejs#2437.
Reinstalling the latest version of vuepress fixed it for me |
Same issue here. |
Same issue here ("vuepress": "1.5.4"). I tried to trace for I tried to comment out
It seems no more errors triggered. I suspect that there could be reading files that listed in the cached files (those json files in I inserted I cannot go further. Perhaps I need to be more familiar with the mechanism of VuePress first.
|
This seems to solve the issue for me, otherwise reload/update fails 95% of the time. |
Just an update (since it's the same work around mentioned recently) that this has been working for my project for close to two months now, I have yet to run into a situation where it doesn't work. We have ~100 pages so it's a decent sized doc site. I tried to reproduce the problem with a simple example repository that could be referenced here but I couldn't. I tried making a few hundred pages of generic info and couldn't get it to fail. Unfortunately, I can't share our repos where it has confirmed to fail. Maybe it's got something to do with the randomness of the sidebar/inter page linking that a real site has vs one that is generated programatically. |
@afkoziol Our documentation repo is public, and fails quite consistently for me. Can you reproduce it there? |
Yup! I was able to repro it very easily. Ran the dev server, renamed one of the second level headers and it failed. |
To avoid compilation errors caused by removed files
Hitting the same issue very frequently with the Rundeck Docs. |
I met this problem and could not hot reload and I run these:
and then works for me. |
This workaround worked for me. The automated version:
It should also work on MacOS, but haven't tested. |
I created a PR to fix this: #2612 but it has not been reviewed or merged for over a month. 😢 @bencodezen @billyyyyy3320 I apologize for the unsolicited mention, but can I get a review for the aforementioned PR? |
I tried deleting |
Is there any ETA on when this will be released? Or there is some release schedule? |
Still getting the same error. I can't believe this isn't solved yet. |
Sorry for delay. The fix is available in 1.8.0 |
@meteorlxy Thanks! |
Bug report
In development mode it sometimes breaks down when incrementally compiling the changes and I get this error in the browser console:
The build output in the terminal does not report any errors, and will happily recompile further changes, but nothing will happen in the browser.
Steps to reproduce
vuepress dev src
I am sorry for not providing a minimal example, but I truly have no clue which part of my code/setup is causing this. I am using a custom theme and VueX, but the issue started appearing before setting up VueX.
What is expected?
A normal incremental compile + hot reload.
What is actually happening?
The error pasted above.
Other relevant information
(I am running this via WSL, which is probably why it doesn't report my browsers)
npx vuepress info
in my VuePress project:Other than this issue, I really really like using VuePress so far, keep up the great work!
The text was updated successfully, but these errors were encountered: