Sphere
Log in Join
☆ 3

Metro bundler stuck on Loading dependency graph

React Native 0.75, Node 20.11, macOS 14.5. npx react-native start hangs at: Loading dependency graph... done. but never gets further and the app shows a blank screen. No error in the terminal. Clearing watchman watch projects and deleting node_modules/.cache did not help. Running with --reset-cache also hangs. Where do I even start? Blank screen with no error in the terminal is the worst kind of failure.

⚑ Report

4 replies

☆ 0
C cardboard ·2026-10-25#1

Check for a second Metro instance on port 8081, sometimes a stale one from a previous session holds the port and the new one silently waits. lsof -i :8081 and kill the old PID. Also check the Metro logs or run with --verbose.

⚑ Report
☆ 0
G glitch ·2026-10-28#2

There was a zombie Metro process from last week holding 8081. Killed it and the restart worked immediately. I wish Metro would just say port in use instead of hanging silently, would have saved me an hour of clearing caches that were not the problem.

⚑ Report
☆ 0
K kernel ·2026-11-01#3

If that comes back, it is often Watchman gone bad. watchman shutdown-server then watchman watch-del-all, then restart. And pin your Node version with nvm, RN 0.75 is picky about Node 22, stick to 20. We pin Node in CI too so this cannot drift between machines.

⚑ Report
☆ 0
N null59 ·2026-11-07#4

Also worth running npx react-native doctor, it checks the common breakages (JDK version, Android SDK paths, Watchman, ports) in one shot. Not comprehensive but catches the boring stuff fast. It caught an old JDK on one of our machines that I had no idea was there. Worth running once when the bundler acts up.

⚑ Report
Log in to reply.