When you just make a fresh new app, Expo throws an error saying than the SDK version 18.0.0 is invalid.
The app should start running on the device with the Expo client.
The APP is compiled and it's sended to the device but it won't load.
Uncaught Error: 18.0.0 s not a valid SDK version.
Options are 25.0.0, 24.0.0, 23.0.0, 22.0.0, 21.0.0, 20.0.0, 19.0.0, UNVERSIONED.
npm ls react-native-scripts: -- [email protected]npm ls react-native: -- [email protected]npm ls expo: -- [email protected]node -v: v9.7.1npm -v: 5.6.0yarn --version: 1.5.1watchman version: ERROR: (it's not a command)Also specify:
create-react-native-app my-apk
cd my-apk
yarn start
# Then press a to run it on my phone connected to the USB, using the QR code also fails
The expo client starts to load the app, but then it shows that error.
what is in your app.json?
{
"expo": {
"sdkVersion": "27.0.0"
}
}
I get this error intermittently as well, i had an app running fine the other day and now i'm trying to run it again and it's showing that error. I'm at sdkVersion: 25.0.0
EDIT: Just found a fix, once i opened Expo XDE before i ran the command react-native run-ios then it worked fine and the simulator downloaded the new bundle.
Using Install iOS Simulator App from Expo XDE menu fixed it !
how can i open Expo XDE ?? @joshbedo
I think this is because the Expo app needs updating. After seeing this issue, I updated the Expo app on my Android device and everything ran perfectly.
Update to the latest version of Expo
Most helpful comment
Update to the latest version of Expo