question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"... unsupported veresion of Expo (SDK 22.0.0)" in fresh app

See original GitHub issue

Description

On a pristine project created by create-react-native-app, running yarn run ios loads Expo into the simulator, but it fails with a version error.

Expected Behavior

create-react-native-app Testo
cd Testo
yarn run ios

I would expect the simulator to open and run the starter app.

Observed Behavior

The simulator opens, but produces this error:

image

The console shows:

$ yarn run ios
yarn run v1.3.2
$ react-native-scripts ios
11:42:38 AM: Starting packager...
11:42:46 AM: Starting simulator...
Found Xcode 8.0.0, which is older than the recommended Xcode 8.2.0.
11:43:02 AM: Packager started!

To view your app with live reloading, point the Expo app to this QR code.
You'll find the QR scanner on the Projects tab of the app.

<QR code snipped>

Or enter this address in the Expo app's search bar:

  exp://10.160.81.32:19000

Your phone will need to be on the same local network as this computer.
For links to install the Expo app, please visit https://expo.io.

Logs from serving your app will appear here. Press Ctrl+C at any time to stop.

If you restart the simulator or change the simulated hardware, you may need to restart this process.

11:43:05 AM: Warning: Invalid sdkVersion. Valid options are 10.0.0, 11.0.0, 12.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0, 18.0.0, 19.0.0, 20.0.0, 7.0.0, 8.0.0, 9.0.0

This occurs even if I delete Expo from the simulator (hold icon until it shakes, press X) and re-run yarn run ios.

Environment

$ npm ls react-native-scripts
Testo@0.1.0 /Volumes/git/personal/react-native/Testo
└── react-native-scripts@1.7.0
$ npm ls react-native
Testo@0.1.0 /Volumes/git/personal/react-native/Testo
└── react-native@0.49.5
$ npm ls expo
Testo@0.1.0 /Volumes/git/personal/react-native/Testo
└── expo@22.0.4
$ node -v
v8.9.1
$ npm -v
5.5.1
$ yarn --version
1.3.2
$ watchman --version
4.9.0

Operating system: macOS Sierra, 10.12.6 iOS simulator, iPhone 6, iOS 10.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
brentvatnecommented, Nov 17, 2017

try uninstalling the expo client from your simulator and running yarn ios again. probably the simulator has an old version of the expo client, as the message suggests

0reactions
nikitatrifancommented, Apr 25, 2018

@dphilipson thanks for the answer. I deleted all devices, recreated them and … the same as your problem didn’t gone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"... unsupported veresion of Expo (SDK 22.0.0)" in fresh app
On a pristine project created by create-react-native-app , running yarn run ios loads Expo into the simulator, but it fails with a version...
Read more >
Upgrade Expo SDK
Learn how to incrementally upgrade the Expo SDK version in your project. We recommend upgrading SDK versions incrementally, one at a time. Doing...
Read more >
Expo error when trying to build: Unsupported SDK version
To fix this error you need to upgrade the SDK that that your Expo project is using. Ideally you should upgrade to the...
Read more >
Expo SDK 38 is now available - DEV Community ‍ ‍
With our last release, we introduced expo-updates , a brand-new library that lets you use over-the-air updates in any React Native app. Check ......
Read more >
the engine "node" is incompatible with this module. expected ...
[4/4] Building fresh packages... success Saved lockfile. ... the engine "node" is incompatible with this module. expected version ">=12". got "10.19.0".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found