Expo-start: An unexpected error has occurred

I am setting up react-native and expo on my machine. When i run expo start in my terminal i get a blank white screen with the text "An unexpected error has occurred" And also when i scan the QR code i get "Network response timed out". I tried following all the steps on setting up my expo environment using the docs so i do not know where i went wrong and how to resolve it. I even tried deleting and reinstalling expo-cli on my machine. I am using linux and I have [email protected] installed.

Upvotes: 1

Views: 862

Answers (1)

Sajjad Ahmad
Sajjad Ahmad

Reputation: 26

Found the solution! Apparently expo-cli v5.4.10 or greater versions has some issues with the web interface. Rolled back to 5.4.9 and DevTools work again now. This is the rollback command

npm install [email protected] --location=global

For uninstalling the Previous CLi you can use

yarn global remove expo-cli 

or

npm -g uninstall expo-cli --save

if you are using npm

Upvotes: 1

Related Questions