react-native
React Native file watcher error (Watchman)
Watchman.*error|EMFILE.*too many open files|inotify.*limit
Fixes
- 1.Increase inotify watchers: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
- 2.Restart Watchman: watchman shutdown-server then start Metro again
- 3.On macOS increase file limits: ulimit -n 4096 or install latest Watchman via brew
react-nativewatchmanfile-system
Related Errors
react-native3 fixes
Metro bundler crash or port conflict
Metro.*error|metro bundler.*crashed|EADDRINUSE.*8081
- •Kill existing Metro process: npx kill-port 8081
- •Clear Metro cache: npx react-native start --reset-cache
react-native3 fixes
React Native native module not found
Native module.*cannot be null|TurboModuleRegistry.*not found|NativeModules.*undefined
- •Run npx pod-install (iOS) or rebuild the project after adding native deps
- •For New Architecture, ensure the module implements TurboModule interface
react-native3 fixes
React Native Android Gradle build failure
Gradle.*BUILD FAILED|execution failed for task.*:app:
- •Run cd android && ./gradlew clean then rebuild
- •Check android/gradle.properties for JVM memory: org.gradle.jvmargs=-Xmx4g