The experience you requested uses Expo SDK v(null), but this copy of Expo Client requires at least v23.0.0

牧云@^-^@ 提交于 2019-12-06 01:51:45

问题


I'm getting this error when launching Expo on my iOS simulator.

The experience you requested uses Expo SDK v(null), but this copy of Expo Client requires at least v23.0.0. The author should update their experience to a newer Expo SDK version.

I've seen this answer Expo not loading (React-Native) -- null Expo SDK version but the solution does not work for me. I already have the sdkVersion in my app.json:


  "expo": {
    "sdkVersion": "22.0.0"
  }

I tried yarn upgrade --latest but still no luck. Any ideas are appreciated. I'm using expo-cli --version 1.1.0


回答1:


The answer is updating the SDK by making the following changes.

  • Close XDE or your exp CLI server
  • In app.json, change sdkVersion to "27.0.0"
  • In package.json, change these dependencies:
    • react-native to "https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz"
    • expo to "^27.0.0"
    • react to ("16.3.1" — this exact version)
    • react-navigation to "1.5.11" (if you use it, and be sure to peruse the release notes)
    • jest-expo to "^27.0.0" (if you use it)
    • sentry-expo did not change from "~1.7.0" (if you use it)
  • Delete your project’s node_modules directory and run npm install again (or use Yarn)
  • Reopen your project in XDE and press “Restart” to clear the packager cache, or run exp start -c if you use use exp.
  • Update the Expo app on your phones from the App Store / Google Play. XDE and exp will automatically update your apps in simulators.

Source: https://blog.expo.io/expo-sdk-v27-0-0-is-now-available-898bf1e5b0e4




回答2:


Same "experience you requested" message launching on iPhone...solved it with;

1) update Expo SDK following... https://blog.expo.io/expo-sdk-v32-0-0-is-now-available-6b78f92a6c52

2) updating .babelrc to be similar to... https://babeljs.io/docs/en/configuration

3) did this command too... clears caches, etc... watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/haste-map-react-native-packager-* && rm -rf node_modules/&& npm install




回答3:


-Close your Expo CLI server -Run expo upgrade in your project directory (requires the latest version of expo-cli, you can update with npm i -g expo-cli).

-Make sure to check the breaking changes section of this post!

-Run expo start -c

source: https://blog.expo.io/expo-sdk-35-is-now-available-beee0dfafbf4



来源:https://stackoverflow.com/questions/52287710/the-experience-you-requested-uses-expo-sdk-vnull-but-this-copy-of-expo-client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!