-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Windows] File locking errors #4204
Comments
Yeah, I'm having the same issue, particulary with .idea or .hg directories.
It's occuring so frequently that I've resorted to commenting the |
@kwaak It's not only those folders... I've commented the process exit too. Impossible to use packager without it... |
I believe that's the same issue: You can also use watchman |
Closing this issue out for now, as some workarounds were provided here, including using watchman which is recommended on other platforms as well. Feel free to reopen if this issue still persists! |
@WoLfulus where to add the exception handler? |
@jsierles using watchman no longer helps |
+1 |
This is still a bug. |
I have experienced a lot of errors in the packager (that literally crashes it) everytime I'm developing.
The crash seems to occur here:
react-native/local-cli/server/server.js
Line 108 in 88a92f8
Because error seems to be undefined.
Everytime the crash occurs, there's an error before
with random files.
Process Monitor logs "file locked" on those files when the error occurs.
I managed to stop the server from crashing by adding a check for undefined error and returning if it occurs, but that doesn't seems to be a real fix for me. I don't understand why error callback fires with undefined errors too.
Also, removing react.gradle from the gradle project and making a custom build script (downloading from the packager to the right dest with curl) helped.
Project "Rebuild" also triggers some of these errors (at least i think its related) but this time inside gradle... I'll try to get a stacktrace for this one.
Also... its the default project structure/files (from react-native init)
Any ideas?
The text was updated successfully, but these errors were encountered: