您要求的体验使用 Expo SDK v(null),但此 Expo Client 副本至少需要 v35.0.0 [英] The experience you requested uses Expo SDK v(null), but this copy of Expo Client requires at least v35.0.0
问题描述
我决定回到我去年开发的 Expo 应用程序,当时使用的是 expo-sdk:v33.0.0,它正在工作.我尝试使用类似问题的 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 客户端需要 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!