metro
metro copied to clipboard
Metro not bundling Android ("done", but doesn't bundle)
Environment
System:
OS: macOS 10.15.1
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 150.90 MB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.12.0 - /usr/local/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.13.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 28, 29
Build Tools: 28.0.3, 29.0.2
System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5791312
Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.4 => 0.61.4
npmGlobalPackages:
react-native-cli: 2.0.1
Description
Since upgrading to RN 61, I haven't been able to properly open my app on Android.
When I try to run the app with react-native run-android
, the Metro bundler does not launch automatically.
When I run Metro with npx react-native start --reset-cache
, it runs on port 8081 and loads the dependency graph but it doesn't bundle when I attempt to run the app on the CLI. It seems to behave like this in debug and release environments.
Any insight would be greatly appreciated!
Steps I've tried
-
npx react-native start --reset-cache
-
watchman watch-del-all
-
watchman watch-del-all && rm -rf node_modules/ && npm cache clean && npm install && npm start --reset-cache
-
brew uninstall watchman && brew install watchman
- delete node_modules,
npm install
clean project, rebuild project, invalidate caches / restart. - migrating my node_modules to AndroidX
I believe we're experiencing the same issue on iOS.
App builds fine. Then Flipper shows that app makes an initial status check request to metro, which resolves with a 200, no problem, but then subsequent request for bundle appears to time out...

This appears to be 'machine-specific' to one developer on my team and affects dev's ability to work on all existing and or new apps. Timing seems to coincide with upgrade to latest MacOS. On other hand, my machine is also up to date with updates and I have no problem.
same issue here. For my colleague it works fine, for me it doesn't. Can't run any app since updating to RN 0.62.2.
same issue here. For my colleague it works fine, for me it doesn't. Can't run any app since updating to RN 0.62.2.
FWIW, we ended up having to completely wipe the affected dev's machine to fix...
try cleaning gradlew and remove node_modules and then reinstall it........ it may work
It's happening to me again...
react-native info
System:
OS: macOS 13.4.1
CPU: (8) arm64 Apple M1
Memory: 92.80 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.19.1 - ~/.nvm/versions/node/v16.19.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.19.1/bin/yarn
npm: 8.19.3 - ~/.nvm/versions/node/v16.19.1/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /Users/benjaoliva/.jenv/shims/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.4 => 0.67.4
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Java Version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)
cd android && ./gradlew --version
------------------------------------------------------------
Gradle 7.2
------------------------------------------------------------
Build time: 2021-08-17 09:59:03 UTC
Revision: a773786b58bb28710e3dc96c4d1a7063628952ad
Kotlin: 1.5.21
Groovy: 3.0.8
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.11 (AdoptOpenJDK 11.0.11+9)
OS: Mac OS X 11.4 x86_64