Currently, starting a new project throws the error "Error: Invalid sdkVersion."
See original GitHub issueDescription
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.1npm ls react-native
: 0.54.0npm ls expo
: 26.0.0node -v
: 9.8.0npm -v
: 5.6.0yarn --version
: 1.5.1watchman version
: 4.9.0
Also specify:
- Operating system: Mac high sierra 10.13
- 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:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Mine is
50.0.5
Going to update and see if that resolves the issue.
Doing that in addition to also reseting and reinstalling the expo app on the ios sim made it work. Thanks for the quick reply.