App crashes at launch with JS bundle errors
Cause: JS bundle in the system causes conflicts. Your app doesn’t appear on the device or in thevlcm list output. You see either “Requiring unknown module” or “Property __d doesn’t exist” errors.
Solution:
-
Capture the device logs:
-
Launch your app using one of these commands:
-
If using Kepler CLI:
-
If using NPM scripts in package.json:
-
If using Kepler CLI:
-
Monitor the log stream for error patterns:
“Requiring unknown module” error example:
“Property ‘__d’ doesn’t exist” error example:
-
If you see these errors, disable the JS bundle system and rebuild your app:
The app builds successfully but isn’t visible on the device
Cause: The app is running in the background or there are UI rendering issues. Solution:-
Check which app is currently in the foreground:
-
If your app is in the background, bring it to the foreground:
-
Toggle between background and foreground to refresh:
The app remains invisible after bringing to foreground
Cause: Multiple apps running on Metro server or UI code errors. Only one app can use the Metro server at a time. Solution: Check for multiple running apps:- Press Ctrl+C in the terminal where the Metro server is running to close it.
-
Stop the app:
-
Restart the app:
- Monitor the Metro server output for errors:
- Look for issues caused by incompatible React Native packages
- The Metro server displays errors as they occur
- Fix the errors in your code:
- The Metro server automatically rebuilds the bundle after each change
- Once you fix the error, the Metro server creates a bundle
Metro server fails to start or crashes frequently
Cause: Port conflicts, corrupted cache, or system resource constraints. Solution:-
Clear Metro cache:
-
Check for port conflicts and use a different port:
-
Restart Metro server with verbose logging:
- If issues persist, restart your development machine to clear system resources.

