What to do if expo start does not start in React Native
Thank you for your continued support.
This article contains advertisements that help fund our operations.
Table Of Contents
Frequent errors occur with expo start. You need to update the CLI and the simulator app. Here's how to deal with bugs that occur after the update.
How to deal with expo start errors
React Native's expo is extremely convenient, so many people install it.
When you run expo start and for some reason it doesn't start the build as usual, here are some things to check.
│ There is a new version of expo-cli available (4.0.15). │
│ You are currently using expo-cli 4.0.8 │
│ Install expo-cli globally using the package manager of your choice; │
│ for example: `npm install -g expo-cli` to get the latest version
If you see this message in the terminal, here's what you need to do.
Additional Information
In simple terms,
"It's recommending you to use the latest version".
Let's run the command.
npm install -g expo-cli
Yes. But it doesn't end there, so I'm writing an article about it.
After this, when you run expo start, the build will start but the screen will look different from the last time.
It doesn't seem to start properly.
Solution
Delete the expo app in the iOS simulator.
Just like on a smartphone, you can delete the expo app by long pressing.
Delete it and run the command again.
expo start
The build started successfully!
Depending on the version, it may start normally, but sometimes you need to take this step to make it work, so please keep this in mind.
That's all for now.