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
Npm run dev crashes randomly #8639
Comments
+1 . I dont understand, I havent modified anything. |
Hi @EduardoMateos , |
Yes, And it only happens to me on mac! |
I solved this problem with: npm cache clear --force Hope this can help you |
I already tried that and it didn't solve the problem on my end. I also tried this already And the problem does still exist. |
I've got the same problem, except that it fails in run dev mode on any change in the underlying code. |
I started encountering this issue after upgrading to node v14.15.4 UPDATE: |
In my case the issue started with node v12 (something) and I upgraded to v14.15.4 because i thought maybe i need to update my node version to get rid of the issue. But that didn't work out. So it also occurs on node v12. |
Possibly related fsevents/fsevents#355 which has same timeline and error - which suggests issue was introduced in fsevents 2.2 and still present in fsevents 2.3. If you are experiencing this issue, could you inspect your package lockfile for fsevents version and let me know - and if using yarn, try pinning your fsevents dependency to a lower version to see if it fixes the issue. |
@danielroe I believe you are on the right path. I'm fairly certain that it revolves around the @nuxt/content module. I was on another project using Nuxt, but without the @nuxt/content module, and this error never popped up. Upon further investigation, my nuxt project with the error uses @nuxt/content, which has a dependency of fsevents@2.3.1.
|
@danielroe would it be best to post this issue on the @nuxt/content issues, or to attempt to pin earlier versions of |
This is relevant for nuxt in general because builder depends on chokidar, and in fact upcoming v2.15 bumps the chokidar version to ^3.5.1. It would be helpful to know if pinning chokidar to a lower version solves the issue for you. |
I had the same issue and ended up downgrading to "resolutions": {
"**/fsevents": "2.1.0"
} |
Is there a recommended way to pin something with |
I have noticed the same issue. Im running on macOS Big Sur 11.1 |
If anyone is experiencing this, could you take as many of the following steps as you can?
This would be hugely helpful as it's particularly difficult to fix this kind of issue without more info... |
In my case, this problem occurs just by editing some components in the |
Hi 🖐, I also have this error for a week since starting a new setup, 100% of the time the dev. server crashes on saving files inside the |
Good catch jantastic, same scenario here |
I guess this one is related too, when I change something like |
FWIW, I ended up downgrading node to |
@jpcarpenter what you did besides downgrading to |
The problem was fixed with fsevents/fsevents#356, I had an issue with |
Great news 🎉 I'll close this issue now as it's been fixed upstream. Anyone still experiencing it should first try |
Hi everyone,
first of all: thanks for this great piece of software. Unfortunately and out of the blue I'm facing an issue that makes it nearly impossible to work with it locally.
Running
npm run dev
compiles everything nicely and then it's waiting for changes as it's supposed to do. Upon saving a file it compiles again but randomly aborts the whole script with the following error message:Versions
Reproduction
I guess it's hard to reproduce as even here
npm run dev
aborts not every time I'm saving a file. I've added my dependencies from package.json here:What is Expected?
npm run dev
compiles again upon saving a file.What is actually happening?
npm run dev
randomly aborts compilation. Upon some file savings it works, then it aborts again.The text was updated successfully, but these errors were encountered: