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

问题描述

我决定返回去年正在开发的,正在使用expo-sdk:v33.0.0的Expo应用程序,并且该程序正在运行.我试图从类似的问题中使用Squirrl的解决方案,但还是没有运气.尝试删除node_modules和yarn_install.这是我的package.json:

I decided to return to an Expo app I was developing last year and was using expo-sdk:v33.0.0 and it was working.I tried to use a solution of Squirrl from similar question, but still no luck. Tried removing node_modules and yarn_install. Here's my package.json:

enter 
"dependencies": {
 "@react-native-community/masked-view": "^0.1.7",
 "@react-navigation/material-bottom-tabs": "^5.1.1",
 "@react-navigation/material-top-tabs": "^5.1.1",
 "@react-navigation/native": "^5.0.9",
 "@react-navigation/stack": "^5.2.3",
 "axios": "^0.18.1",
 "date-fns": "^1.29.0",
 "dotenv": "^8.2.0",
 "expo": "^33.0.0",
 "expo-font": "~5.0.1",
 "lodash": "^4.17.15",
 "native-base": "^2.13.1",
 "react": "16.8.3",
 "react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
 "react-native-gesture-handler": "~1.2.1",
 "react-native-modal": "^11.5.4",
 "react-native-paper": "^3.6.0",
 "react-native-platform-touchable": "^1.1.1",
 "react-native-reanimated": "1.0.1",
 "react-native-safe-area-context": "^0.7.3",
 "react-native-safe-area-view": "^1.0.0",
 "react-native-status-bar-height": "^2.1.0",
 "react-native-tab-view": "^2.13.0",
 "react-native-vector-icons": "^5.0.0",
 "react-redux": "^5.1.0",
 "redux": "^4.0.1",
 "redux-axios-middleware": "^4.0.0",
 "redux-persist": "^5.10.0",
 "save": "^2.4.0",
 "victory-native": "^30.6.0"
"devDependencies": {
 "babel-preset-expo": "^5.0.0",
 "nodemon": "^2.0.2",
 "react-native-dotenv": "^0.2.0"

该应用当时正在处理这些依赖项.第一个问题是错误显示Expo SDK v(null).但是在package.json和app.json中都指定了版本.第二个问题是错误,提示Expo Client需要v35.0.0.如何在不将SDK从v33升级到v35的情况下运行该应用程序

The app was working with these dependencies that time.1st issue is that error says Expo SDK v(null). But version is specified in both package.json and app.json.2nd issue is error says Expo client requires v35.0.0. How can i run the app without upgrading sdk from v33 to v35

推荐答案

这对我有用.

运行 npm i -g expo-cli (如果在Mac上,您可能必须使用sudo.我这样做了.)然后运行 expo upgrade

Run npm i -g expo-cli (You may have to use sudo if on a Mac. I did.) then run expo upgrade

按照提示进行操作,

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

10-12 15:23