-
Notifications
You must be signed in to change notification settings - Fork 477
File watcher permissions error on Windows causes crash #2021
Comments
also see: oblador/react-native-vector-icons#354 you can try running as administrator as suggested in that issue |
maybe we can watch EPERM errors and link people to some expo.fyi doc that explains how they can work around this |
I tried |
as far as i know it does not, seems like something with your machine. feel free to clone the repo and install node_modules and scan for that file everywhere and you won't find it. when in doubt it's generally some weird windows thing |
I found that the new project created by Thank you for your cooperation. |
Still having the same problem with version 3.20.0 |
Unfortunately, it happened again in my project. |
Follow-up: |
This symptom is reproduced in the project created by [email protected] In a symptomatic project, |
I'm not sure if it's related but I get a similar error as well. Either expo randomly crashes or crashes when I add a new package to my project. using [email protected]
|
it sounds like you need to fix permissions on your machine or run everything as admin. i think the fix here isn't something we can build into expo-cli, but rather to guide people to an appropriate guide. i'm not familiar enough with windows to know what the best approach is here. cc @byCedric |
I also occasionally see an error that |
This error is making my life hell for react development. building an apk, is becoming a nightmare for me. |
events.js:292 Error: EPERM: operation not permitted, lstat 'xxxxx\android\app\build\generated\assets\react' |
events.js:287 Error: EPERM: operation not permitted, lstat 'C:\Users\KIIT\Desktop\ProApp\node_modules.bin\atob' |
I had to quit Expo and user react-native cli in the end |
@EvanBacon @brentvatne I also get the same issue .
|
Tested now. Expo refreshes my app-changes successfully if VS Code is closed when executing Hope this result helps you 😃 |
When tried with Atom, can do some refreshing changes, but crashed prompting the same issue. |
It is interesting that the phenomenon involving the same file On the other hand, I'm not too worried because I can avoid this error just by creating an empty |
Thank you @katontech . You saved my day. Created |
I don't even know that. I also searched for the installed expo-cli code and know that |
None of our code, or our dependencies, refer to the file We do know there are "weird behaviors" of file permissions on Windows. For example, creating a symbolic link doesn't work on Windows unless you run terminal with administrator privileges. I would heavily recommend to try that if you run into any But again, let's try to find the source of the |
The phenomenon occurred by repeating the source update after expo start even if it was just after creating the project with You seem to be skeptical about the "strange behavior" of Windows file permissions, but I think this is a different story as it can be reproduced in a terminal with administrator privileges. Thanks for your comment. :-) |
i had the same Error .i jhave kasperskysecurity and I disabled its file protection service .then eeror was gone |
This is happening to me as well. Tech info: Error:
|
Am also getting a similar error: Doesn't occur on web app for me but it does happen quite often when tunneled to my ios device.
|
I'm getting this error C:\Development\App\OfficeProjects\TillelIApp\node_modules\metro-hermes-compiler\src\emhermesc.js:77
throw ex;
^
Error: EPERM: operation not permitted, lstat 'C:\Development\App\OfficeProjects\TillelIApp\.git\objects\maintenance.lock'
Emitted 'error' event on NodeWatcher instance at:
at C:\Development\App\OfficeProjects\TillelIApp\node_modules\jest-haste-map\build\watchers\NodeWatcher.js:275:14
at FSReqCallback.oncomplete (node:fs:198:21) {
errno: -4048,
code: 'EPERM',
syscall: 'lstat',
path: 'C:\\Development\\App\\OfficeProjects\\TillelIApp\\.git\\objects\\maintenance.lock'
}
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
yep getting the same error |
Tente correr no terminal do VsCode yarn react-native run-android --port 8082 |
Go to 'System preference' -> 'Security & Privacy' -> scroll down and click 'Full Disk Access' -> Make sure you checked on 'Terminal' and 'Watchman'. |
There is no Watchman on my settings, any idea why? I am working on macOS Monterey version 12.5 |
Hey guys. I'm dealing with this error for about 1 month now and it's exponential, 1 per day and now every 5 minutes, but I think it's because I increased git branch activities and writing code while compiling (e.g. run android). I found a solution. My Environment:
What I think is happening: graph TD;
VsCode_LockThat-->android,git,etc;
ExpoMetro_LockThat-->android,git,etc;
android,git,etc-->EPERM,lstat;
EPERM,lstat-->ExpoCrash;
And that's why opening as administrator any software (Terminal, VsCode) didn't work. Solution that worked for me:https://forums.expo.dev/t/error-eperm-operation-not-permitted-lstat/19221 const blackList = /.*git.*|.*android.*|.*__fixtures__.*|.*node_modules.*|.*react.*|.*dist.*|.*website\\node_modules.*|.heapCapture\\bundle.js|.*__tests__.*/gm
module.exports = {
resolver: {
blockList: blackList,
blackListRE: blackList,
}
};
💡Note: Okay, if it doesn't work for you, follow these instructions (launch VsCode from WSL Ubuntu terminal on Windows): |
For me, the most troublemaking one is But I can't workaround this by using // Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');
const blockList = /\\__tests__\\.*|\\.git\\.*/
const defaultConfig = getDefaultConfig(__dirname);
module.exports = {
...defaultConfig,
resolver: {
...defaultConfig.resolver,
blockList,
}
}; However, it still crashes with the same error time to time. |
For git related errors, the root cause is facebook/metro#553, it only accepts Linux path separator even on Windows, so I shouldn't use
|
|
Hi all! Since this seems like an issue in Metro itself, let's keep the discussion central inside facebook/metro#553 Closing this issue, related to Metro. |
Description
Expo server crashes frequently.
I was reporting that I had the same symptoms as Issue #519, but that was my mistake.
Expected Behavior
The server crashes while running expo start and connecting to the device.
Observed Behavior
I'm not sure what the file "table.xsl.tmp" came from. This file name is shown in the error message of all my projects.
Fortunately, I've found that I can avoid a crash by leaving an empty file with this name in my project root.
Environment
The connection devices are as follows.
The text was updated successfully, but these errors were encountered: