Expo App Load Failure: Can't Load Expo App Something Went Wrong
In this article
Can't load expo app something went wrong? This usually means the Metro bundler or the Expo development server failed to start or connect.
Background
Expo is a set of tools and services built around React Native that lets developers build cross-platform mobile apps using JavaScript and React. When you run expo start the Metro bundler compiles your JavaScript, and the Expo client app on your device or emulator loads the compiled bundle. If anything in this chain breaks, the client shows the generic error message “something went wrong”.
How It Works
Expo works in three main stages:
- You write code in a project folder.
- The
expo startcommand launches Metro, which readsindex.jsand any imported files. - The Expo client app (on iOS, Android, or a web browser) connects to the Metro server via a local URL (usually
http://localhost:19000) and downloads the bundled JavaScript.
Because the client relies on a network connection, any interruption in the server, the network, or the bundle itself will cause the error message.
How to Choose a Fix
When you see the error, first identify where the breakdown occurred:
- Is Metro not starting?
- Is the client unable to connect to the URL?
- Did the bundle fail to compile?
Pick the appropriate troubleshooting path based on the symptom. The most common fixes are restarting Metro, clearing caches, or updating dependencies.
Common Problems
Below are the typical issues that trigger “something went wrong”.
- Metro server crashes – often due to unhandled exceptions in the code or a missing dependency.
- Network address conflict – on some Wi‑Fi networks the localhost address is blocked or the device cannot reach
localhost. - Cache corruption – stale Metro or Expo caches can cause the bundler to load an incomplete file.
- Incorrect Expo CLI version – mixing an old CLI with a newer project can produce incompatibilities.
Each of these has a straightforward remedy, described in the next sections.
Steps to Resolve
Follow these steps in order. They are safe and reversible.
- Restart the Metro server: Press
Ctrl + Cin the terminal whereexpo startis running, then runexpo startagain. - Clear Metro and Expo caches: Execute
expo start -c. The-cflag clears both caches before starting a fresh Metro instance. - Check your device’s network: Ensure the phone or emulator is on the same network as your computer. If you’re using a physical device, enable “Debug server host & port for device” in the Expo settings and confirm the IP address is reachable.
- Verify project dependencies: Run
npm installoryarnto reinstall any missing packages. - Update Expo CLI: Run
npm install -g expo-clioryarn global add expo-clito bring the CLI up to date.
If after these steps the error persists, move to the next section.
If That Did Not Work
When the basic fixes fail, dig deeper into the environment.
- Check the Metro bundler logs for stack traces that point to a specific file or module.
- Run the app in a web browser (
expo start --web) to see if the bundle loads there; this can isolate client‑side issues. - Try creating a new minimal Expo project (
expo init test-app) and see if it starts without errors. If the new project works, the problem is likely in your original code or configuration.
These diagnostics help pinpoint whether the issue is code‑related or environment‑related.
Frequently Asked Questions
Why does the error say “something went wrong” instead of a specific message?
The generic message is a fallback that Expo shows when the underlying error does not have a dedicated UI. Checking the terminal where Metro runs often reveals the precise exception.
Can I run Expo without the client app?
Yes, you can build a standalone app using expo build:android or expo build:ios, but during development the client app is required to view the live bundle.
Is it safe to delete the node_modules folder?
Deleting node_modules is safe; simply reinstall dependencies with npm install or yarn. This often resolves version mismatches that cause Metro to crash.
Do I need an internet connection to run Expo?
Yes, at least for the initial bundle download. Once the JavaScript is cached on the device, you can disconnect, but the first load always requires a network connection.
Will reinstalling Expo CLI erase my project?
No. Reinstalling the CLI only affects the global command‑line tool; your project files remain untouched.
Can I use Expo on Windows Subsystem for Linux?
Expo CLI works in WSL, but the Metro server must be reachable from the Windows side. Using the IP address of your Windows interface (e.g., 172.28.XX.XX) in the device’s settings often resolves connectivity issues.
These steps cover the most common causes and fixes for the “something went wrong” error when loading an Expo app.