Every solo developer has the night when the build simply won't pass. I search the error, try every fix the results suggest, and somewhere along the way break a second thing. I did exactly that for a long time.
Looking back, the problem was rarely a missing command. It was that I never asked which layer the failure lived in: packages, my dev environment, Rork's generation, or the code itself. Once the layer is clear, the fix usually narrows to one or two commands.
This FAQ is organized by layer. You don't need to read it top to bottom. Open the question that matches what you're seeing.
| Symptom | Likely layer | Go to |
|---|---|---|
| Build fails, "peer dependency" in the log | Packages | Q1 |
| Unable to resolve module | Packages / cache | Q2 |
| iOS simulator won't launch | Dev environment (Xcode) | Q3 |
| Android emulator stuck on a white screen | Dev environment (Android) | Q4 |
| Generation stalls midway | Rork side / network | Q5 |
| Images or icons missing | Assets / paths | Q6 |
| Changes don't show up | Metro / connection | Q7 |
| A Fix Now button appears | Code (mechanical mistakes) | Q8 |
If you can't tell which layer you're in, run these two first. They inspect the project mechanically and usually point you at the right row.
npx expo-doctor # lists version drift and config conflicts
npx expo install --check # shows only packages that don't match your SDKThe commands and screen names below match the official Expo and React Native docs as of November 2026. Wording shifts between versions, so if your output differs from what I show, trust the docs for your SDK version over this page.
Triage table: start from the exact error text
The first table works from symptoms. This one works from the literal text your terminal printed. When I copy a red line, this is the table I compare it against first.
| What you see | Likely cause | How to confirm | Fix |
|---|---|---|---|
ERESOLVE unable to resolve dependency tree | Peer dependency versions collide | Read the package named under Could not resolve dependency | npx expo install --fix, then align that package's version (Q1) |
Unable to resolve module ... could not be found within the project | Not installed, or a stale cache | Is there a matching folder in node_modules? | Reinstall from the lock file, then npx expo start --clear (Q2) |
xcrun: error: unable to find utility "simctl" | Command-line tools point at the wrong place | Does xcode-select -p point inside Xcode.app? | sudo xcode-select -s /Applications/Xcode.app (Q3) |
SDK location not found | Android SDK path isn't set | Is echo $ANDROID_HOME empty? | Set ANDROID_HOME to Android Studio's SDK path (Q4) |
| A prompt says port 8081 is in use | An old Metro process is still running | lsof -i :8081 | Stop the old process or start on another port (Q3) |
| White screen, no red screen | The bundle hasn't finished | Does the terminal show bundling progress? | Restart with --clear, wait for progress, then reload (Q4) |
| Saving changes nothing on screen | Fast Refresh fell back to a full reload, or the connection dropped | Does the terminal log a reload? | Reload from the developer menu (Q7) |
If nothing here matches, look only at the very first line of the error. The long stack trace after it is usually just the consequence.
Q1: "Build failed." What is a dependency conflict?
A: The most common cause is two packages demanding incompatible versions of a third. Package A wants library X 1.x, package B wants 2.x. If your log mentions conflicting peer dependency or ERESOLVE, this is almost certainly it.
# Rebuild dependencies from scratch
rm -rf node_modules package-lock.json
npm cache clean --force
npm installIf npm install still stops, --legacy-peer-deps relaxes the strict peer check:
npm install --legacy-peer-deps:::warning This flag doesn't resolve the conflict; it chooses not to look at it. After it passes, confirm the app actually launches. If it doesn't, go back and align the version of the package named in the log. :::
For packages tied to your Expo SDK (expo-* and some react-native-* packages), this is safer than a plain install:
npx expo install --fixFor a while I pushed through every ERESOLVE with --legacy-peer-deps. The build passed. A few days later the app started crashing on a real device only, and when I traced it back, a native module had slipped in at a mismatched version on the day I forced the install. What made my stomach sink was that nothing in my history showed where it came in.
Use the flag to confirm; fix it by aligning versions. I don't let myself reverse that order anymore.
Q2: "Unable to resolve module" for an Expo package
A: Either the dependency isn't installed or Metro's cache is stale.
Metro's message usually looks like this:
Unable to resolve module expo-image from /app/(tabs)/index.tsx:
expo-image could not be found within the project or in these directories:
node_modules
Either expo-image was never installed, or it was and Metro is still holding an old map of your files.
npm ci # reinstall exactly what package-lock.json says
npx expo start --clear # start Metro without its cacheSome older guides recommend npm install -g expo-cli. A global expo-cli is no longer the way to go; use npx expo ... inside the project. A stale global copy can drift from your project's SDK version and add confusion.
npx expo --version # should print the version installed in your projectOne distinction worth keeping: npm ci reproduces exactly what the lock file says, while npm install tidies up from whatever state you're in. When you want a clean reproduction, use ci. If your project uses bun or yarn, swap in that tool's frozen-lockfile install (bun install --frozen-lockfile, for example); the idea is the same.
If the same message survives a reinstall, check the spelling of the import and the letter case of the package name. macOS is usually case-insensitive, so an import can work on your machine and still fail on a build server.
Q3: The iOS simulator won't start
A: This is a dev-environment problem; your code is almost never involved. Check three things in order.
Xcode and command-line tools (macOS only):
xcode-select --install
xcode-select -p # a printed path means it's setIf xcode-select -p prints /Library/Developer/CommandLineTools, you'll see xcrun: error: unable to find utility "simctl". Point it at Xcode.app instead:
sudo xcode-select -s /Applications/Xcode.app/Contents/DeveloperThe simulator itself:
xcrun simctl list devices available
xcrun simctl boot "iPhone 16 Pro" # use a name from the listPort 8081 already in use:
lsof -i :8081
npx expo start -p 8082:::tip When the simulator refuses to cooperate, test on a real phone with Expo Go. It sidesteps simulator-specific trouble and tells you quickly whether the app itself is at fault. :::
Q4: The Android emulator shows only a white screen
A: A white screen means nothing could be drawn. The cause is usually one of four things: an unfinished bundle, the JDK, the emulator's resources, or the connection.
Start by clearing Metro's cache:
npx expo start --clearConfirm the terminal shows bundling progress, then press r in the emulator. If there's no progress in the terminal, the cause is on the terminal side, not in the emulator.
Next, check your JDK:
java -versionAs of November 2026, React Native's official environment setup page recommends JDK 17. If you see a different version, the quickest fix is usually to point JAVA_HOME at the JDK bundled with Android Studio. That recommendation can change, so it's worth a one-time check against the docs for your version.
If the build stops with SDK location not found, the JDK isn't the problem. Gradle can't find the Android SDK:
echo $ANDROID_HOME # empty means it isn't set
# Default location on macOS, unless you changed it in Android Studio
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/platform-toolsPut those lines in your shell profile (~/.zshrc or similar), or they disappear the next time you open a terminal.
If memory is tight, open Device Manager in Android Studio, edit the device, and raise its RAM. If that doesn't help, try a Cold Boot, which starts without the saved snapshot.
:::warning Staring at a white screen won't give you an answer. The answer is usually in the red lines in your terminal. :::
Q5: The prompt won't generate an app / generation freezes
A: This layer is Rork's side plus your network. There are three things to try before touching any code.
First, shrink the prompt. Cramming in every feature makes generation drag until it looks frozen. Generate the core, then add features afterward.
// Too much at once
"A chat app with real-time notifications, profile photos, search,
groups, voice messages, video calls, blocking, read receipts..."
// Start small
"A chat app where users can send and receive messages.
A simple UI is fine."
Second, check your connection. An unstable Wi-Fi link stalls generation midway; switch networks and retry.
Third, give the browser room. Many open tabs slow it down. Close the extras, and try another browser if it persists.
Q6: Images or icons don't appear
A: Mostly a path mistake or a package-name mix-up.
One wrong level in a relative path is enough to make an image vanish:
// Recount the path relative to the file's location
<Image source={require('../../assets/images/my-image.png')} />For icons, the standard package is @expo/vector-icons, and the name is easy to confuse:
npx expo install @expo/vector-iconsSpaces or non-ASCII characters in file names can fail to resolve on some setups, so keep them to letters, digits, hyphens, and underscores. If the display is stale, clear the cache with npx expo start -c.
Q7: Hot reload doesn't work
A: Current Expo enables Fast Refresh by default, so flags like --hot aren't needed. Check these in order:
- Is the file saved? Look for an unsaved marker on the editor tab.
- Is there a syntax error? A red error screen blocks updates until it's fixed.
- Is the connection alive? Your device and development machine need to be on the same network.
- Reload from the developer menu.
Cmd + Don the iOS simulator,Cmd + M(Ctrl + Mon Windows) on the Android emulator. You can also pressmin the terminal running Metro to open the menu, or justrto reload.
If nothing helps, stop Metro and restart with npx expo start --clear.
:::tip If you edit a file that exports something other than React components (constants, helpers), Fast Refresh can't swap just that piece. It re-runs that module and the ones importing it, and if the file is imported from outside the component tree, it falls back to a full reload. That's why form state sometimes resets. Nothing is broken. :::
Q8: Is the "Fix Now" button safe to use?
A: Yes, if you pick your moments. When Rork hits a build or runtime error, it can show a Fix Now button under the message. It sends the error and surrounding code to the AI and applies a proposed fix.
It's good when the cause is spelled out in the message: an unclosed bracket, a forgotten import, a function name that doesn't exist, a type mismatch. One press often solves these.
It's weak when the cause lives outside the code: dependency conflicts (Q1), simulator or emulator trouble (Q3, Q4), a frozen generation (Q5). These aren't "fix the code" problems, so Fix Now can apply a fix that misses the point.
This is the order I follow:
- Read the message myself once
- If it's a syntax or import error, press Fix Now
- Always read the diff that was applied
- If the same Fix Now fails twice in a row, stop and go back to the layer check in Q1–Q7
Never keep pressing it without reading what changed—that's the line I hold, because the AI can rewrite unrelated places and leave things more tangled than before.
npm install vs. npm ci vs. npx expo install
All three "install packages," but each protects something different. When I'm unsure, the right-hand column is what I decide by.
| Command | What it does | Lock file | Reach for it when |
|---|---|---|---|
npm ci | Reproduces the lock file exactly | Untouched (stops if out of sync) | You want yesterday's working state back |
npm install | Picks versions within package.json ranges | May be rewritten | Adding a package unrelated to Expo |
npx expo install | Picks the version that matches your SDK | Rewritten | Adding or fixing expo-* or anything with native code |
Native code goes through npx expo install, everything else through npm install, and npm ci when you want to go back. Keep that one sentence in mind and most of Q1 and Q2 never happens in the first place.
Common misconceptions
"If --legacy-peer-deps gets it through, it's fixed." It skipped the dependency check; the version mismatch is still there. Confirming the app launches and aligning the mismatched package is part of the same job.
"Reinstalling expo-cli globally will fix it." The old global expo-cli now lives in the archived section of Expo's docs. The current approach is the CLI installed in your project, called with npx expo. Reinstalling the global one only adds another version that can drift from your project.
"If Fix Now can't fix it, Rork is broken." As Q8 explains, Fix Now can only touch code. A cause in the dependency or environment layer won't disappear however much code gets rewritten. When it stalls, suspect the layer first.
The wall you're likely to hit next
A few places people tend to get stuck right after the build finally passes.
If npx expo-doctor is all green and Play Console still rejects the build, read about the API level check expo-doctor doesn't cover. If the build works but the preview won't open in Expo Go on your phone, matching the login state in both the terminal and the app is usually the shortcut.
If Q1-style version drift keeps coming back, it helps to know which Expo version your app actually runs. See how to check the Expo version your app really has, and pair it with a script that scans for removed APIs before you upgrade the SDK.
Your next step
When a build error shows up, read the message to the end and decide which layer it belongs to: packages, dev environment, Rork's side, or code. Then try only that layer's question.
If a build is failing on you tonight, copy the first red line from your terminal and compare it with the table above.