-
-
Notifications
You must be signed in to change notification settings - Fork 588
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
Received an unknown event from fsevents
then watcher fired unlink
event for the directory recursively
#1286
Comments
Hitting this as well, and it likely causes this two: storybookjs/storybook#22253 vitejs/vite#14126. Though for me it gets triggered from this line chokidar/lib/fsevents-handler.js Line 249 in 08318d6
|
This event basically means that chokidar or its user isn't processing events fast enough, and as such, must rescan the directory recursively for changes by itself as the FSEvents API dropped/coalesced those events. But for some reason https://developer.apple.com/documentation/coreservices/kfseventstreameventflagmustscansubdirs https://developer.apple.com/documentation/coreservices/kfseventstreameventflaguserdropped |
It works, many thanks |
@paulmillr Making a release of fsevents will solve this. |
Hi @paulmillr, this is effecting a fairly large number of Vite and Storybook users. Do you think it would be possible to cut a release of fsevents in the near future? Thanks @Singloo and @segevfiner for troubleshooting and finding the cause! |
@pipobscure what's needed to publish this? Seems like GitHub publish workflow is failing. Not sure where to begin. |
Released as v2.3.3 |
Describe the bug
I'm using vite in work dir
WORKDIR
, but everytime after running vite for a while, chokidar will fireunlink
events to all files underWORKDIR
recursively.I debugged a little, I found that the root cause is an unknown event from
fsevents
.Here is the data of the event
Then this line of code will be triggered
Versions (please complete the following information):
latest
16.17.0
and18.15.0
To Reproduce:
I cannot reproduce this issue on other project
Expected behavior
Provide a way to ignore some unknown events.
Additional context
I have
watchman
,pm2
running on my deviceThe text was updated successfully, but these errors were encountered: