create-react-native-app: Error: Invalid sdkVersion. Valid options are
Description
I created new app with create-react-native-app and trying to run it from app directory with yarn ios and getting:
03:18:26: Starting packager...
***ERROR STARTING PACKAGER***
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
Expected Behavior
My app correctly runs in emulator
Observed Behavior
I’m getting the Error: Invalid sdkVersion. Valid options are in console and same error in expo app in ios emulator.
Environment
-
npm ls react-native-scripts: defiler@0.1.0 /Users/tolik/dev/go/src/defiler/mobile └── react-native-scripts@1.13.2 -
npm ls react-native: defiler@0.1.0 /Users/tolik/dev/go/src/defiler/mobile └── react-native@0.54.4 -
npm ls expo: defiler@0.1.0 /Users/tolik/dev/go/src/defiler/mobile └── expo@26.0.0 -
node -v: v9.4.0 -
npm -v: 5.6.0 -
yarn --version: 1.3.2 -
watchman version: { “version”: “4.9.0” }
Operating system: mac os.
app.json:
{
"expo": {
"sdkVersion": "26.0.0"
}
}
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 16
- Comments: 17 (1 by maintainers)
I did it! I just removed & installed again
create-react-native-app.npm uninstall -g create-react-native-appnpm i -g create-react-native-appI can’t believe that it works. @mirth have you solved your problem?