José Carlos
José Carlos

Reputation: 774

React native unexpected error has ocurred

first time using react native. When i run npm start and open the localhost, it says "An unexpected error has ocurred". If i scan the QR code in the Expo app, it says "Something went wrong. Network responde timed out".

When i open the console this appears

enter image description here

I created the app as:

npm install -g expo-cli
expo init MyApp
Selected the typescript template
And then at the MyApp folder npm start

Upvotes: 0

Views: 1183

Answers (1)

Abhishek
Abhishek

Reputation: 806

Its probably because of new version of [email protected]

Uninstall new version and install 5.4.7

For npm:

npm -g uninstall expo-cli
npm -g install [email protected]

For yarn:

yarn global remove expo-cli
yarn global add [email protected]

Upvotes: 4

Related Questions