不加载Expo(React-Native)-Expo SDK版本为空 [英] Expo not loading (React-Native) -- null Expo SDK version

查看:127
本文介绍了不加载Expo(React-Native)-Expo SDK版本为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用一直运行到今天,但现在看来世博版18发生了某些事情.
我收到此错误:

My app was working till today but now it looks like something happened to version 18 of Expo.
I got this error:

您要求的体验使用Expo SDK v(null),但是此副本 Expo Client至少需要v20.0.0.作者应该更新他们的 体验新版Expo SDK.

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

然后,我:

  • 已更新至Expo v20.0.0
  • 处理了所有未满足的依赖项
  • yarn cache clean
  • rm -rf node_modules/
  • 重新安装的本地节点模块
  • Updated to Expo v20.0.0
  • Handled all unmet dependencies
  • yarn cache clean
  • rm -rf node_modules/
  • Reinstalled local node modules

,我仍然遇到相同的错误.

and I'm still getting the same error.

我需要做些什么才能使Simulator识别出我使用的是正确版本的Expo?

What do I need to do to get Simulator to recognize that I am using the correct version of Expo?

当前环境:

  • Expo v20.0.0
  • 本机v0.47.0
  • 节点v8.11.1
  • Xcode v9.3
  • Mac OS v10.13.4

推荐答案

感谢@PritishVaidya帮助我解决了这个问题.
问题仅仅是因为我在app.json中缺少了"sdkVersion": "20.0.0". Expo Docs 中对此行的使用进行了标注.

Thanks to @PritishVaidya for helping me figure this out.
The problem was simply that I was missing "sdkVersion": "20.0.0" from my app.json. The use of this is lined out in the Expo Docs.

例如:

{
  "expo": {
    "name": "My app",
    "slug": "my-app",
    "sdkVersion": "20.0.0",
    "privacy": "public"
  }
}

这篇关于不加载Expo(React-Native)-Expo SDK版本为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆