本文介绍了您请求的体验使用Expo SDK v(null),但是此Expo Client副本至少需要v23.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iOS模拟器上启动Expo时出现此错误.

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

我已经看到了这个答案 Expo无法加载(本机)-Expo SDK版本为空,但该解决方案不适用于我.我的app.json中已经有sdkVersion:

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"
  }

我尝试了yarn upgrade --latest,但还是没有运气.任何想法表示赞赏.我正在使用expo-cli --version 1.1.0

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

推荐答案

答案是通过进行以下更改来更新SDK.

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

  • 关闭XDE或您的exp CLI服务器
  • 在app.json中,将sdkVersion更改为"27.0.0"
  • 在package.json中,更改以下依赖项:
    • 对" https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz "
    • 博览会到"^ 27.0.0"
    • 对("16.3.1"-此精确版本)进行反应
    • 反应导航到"1.5.11"(如果使用它,请务必仔细阅读发行说明)
    • jest-expo转换为"^ 27.0.0"(如果使用的话)
    • sentry-expo的版本从〜1.7.0"保持不变(如果使用的话)
    • 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)

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

      这篇关于您请求的体验使用Expo SDK v(null),但是此Expo Client副本至少需要v23.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 15:23