Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create project with expo - React Native

I tried create a new project with expo, but I follow steps of expo page. - Install Node.js - npm install expo-cli --global - expo init my-new-project - cd my-new-project - expo start

And when is open Expo DevTools in http://localhost:19002 and appear

- Starting Metro Bundler on port 19001.

- Successfully ran `adb reverse`. Localhost URLs should work on the connected Android device.

- Tunnel ready.

I scan QR, or press run on Android device, this error appears:

Couldn't start project on Android: Cannot read property 'readConfigJsonAsync' of undefined

What happen!!?

like image 255
Cookie Avatar asked Sep 19 '26 23:09

Cookie


2 Answers

Just roll back expo cli to version 2.21.2:

npm install -g [email protected]

Also happened to me after making updates on Yarn, NPM and Expo CLI.

like image 149
Atef Avatar answered Sep 22 '26 02:09

Atef


first install expo npm install -g expo-cli

then run this command for create app in react-native with expo expo init AppName

after go to your app cd Appname then run expo app command npm start

like image 38
SaGaR Patel Avatar answered Sep 22 '26 02:09

SaGaR Patel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!