Home > Back-end >  React native unexpected error has ocurred
React native unexpected error has ocurred

Time:06-18

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

CodePudding user response:

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]
  • Related