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

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

问题描述

我的应用程序一直运行到今天,但现在看起来第 18 版 Expo 发生了一些问题.
我收到了这个错误:

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 缓存清理
  • rm -rf node_modules/
  • 重新安装本地节点模块

我仍然遇到同样的错误.

and I'm still getting the same error.

我需要做什么才能让模拟器识别我使用的是正确版本的 Expo?

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

当前环境:

  • 世博会 v20.0.0
  • react-native 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天全站免登陆