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.

Currently, starting a new project throws the error "Error: Invalid sdkVersion."

See original GitHub issue

Description

Following the instructions in the read.me gives the error “Invalid sdkVersion”

Expected Behavior

If someone is following instructions from the readme shouldn’t it work?

Observed Behavior

I had to change the sdkversion of expo and react-native. I also had to clear the watchman cache and delete node_modules and reinstall packages. This could have been avoided if the sdk version was set to version that worked.

Error: 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, 21.0.0, 22.0.0, 23.0.0, 24.0.0, 25.0.0, 7.0.0, 8.0.0, 9.0.0

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts: 1.13.1
  • npm ls react-native: 0.54.0
  • npm ls expo: 26.0.0
  • node -v: 9.8.0
  • npm -v: 5.6.0
  • yarn --version: 1.5.1
  • watchman version: 4.9.0

Also specify:

  1. Operating system: Mac high sierra 10.13
  2. Phone/emulator/simulator & version: iOS sim v10

Changing expo to v25 and react-native to v52 fixed this error. Just wondering why it’s set to an unsupported sdk version.

Reproducible Demo

Just follow the readme. create-react-native-app my-app cd my-app npm run start

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
d3vhoundcommented, Apr 6, 2018

Mine is 50.0.5

Going to update and see if that resolves the issue.

0reactions
d3vhoundcommented, Apr 7, 2018

Doing that in addition to also reseting and reinstalling the expo app on the ios sim made it work. Thanks for the quick reply.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid sdkversion error. Valid version are... #6747 - GitHub
I install expo with npm using this old version. I was not able to start expo app because invalid sdk error. After that...
Read more >
Invalid SDK version when running expo project - Stack Overflow
recently when i tried to init a new app, it keeps telling:Error, Invalid sdkVersion.(It seems sdkVersion 31 and lower versions are supported) ...
Read more >
Error codes and messages - Adyen Docs
Cause: The card number field contains an incorrect value. 103 - CVC is not the right length. Cause: The Card Validation Code (CVC)...
Read more >
Microsoft Information Protection (MIP) SDK version release ...
Fixed a desk space issue; an error is now reported when MIP runs out of disc space when protecting content. Upgraded OpenSSL dependency...
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 >

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