"Too many open files" error when bundling - watchman installed, ulimit=2048 #28761
Labels
Needs: Triage 🔍
Stale
There has been a lack of activity on this issue and it may be closed soon.
Tech: Bundler 📦
This issue is related to the bundler (Metro, Haul, etc) used.
I have a lot of images to bundle with my app (a few thousand, as part of an emoji pack), and recently (after further images were added) I'm receiving the following output and error when attempting to create a bundle with the following command:
react-native bundle --platform=android --dev=false --entry-file=index.js --bundle-output=android/app/src/main/assets/index.android.bundle --assets-dest=android/app/src/main/res
result
I can see that the latest images have not been added to res and do not show in release builds of the app.
I'm using Git Bash on VSCode on Windows 10.
I have tried increasing the ulimit open files count with
ulimit -n 2048
. Before increasing the limit, the error showed a different file for the "too many open files" example (unrelated to Bugsnag, the file currently shown).Watchman is installed, and I have tried re-installing it. Running
watchman.exe -v
returns4.9.4
. Maybe it's relevant that watchman is not accessible viawatchman -v
without the.exe
? This seems to be how Bash works on Windows.React Native version:
The text was updated successfully, but these errors were encountered: