Reactjs SDK 32.0.0不是有效的SDK
我的应用程序是在sdk 32.0.0中构建的,以前工作正常,但如果我将应用程序升级到33.0.0,它会给我带来错误,因此面临许多问题,如无法加载节点模块或本地化。请帮助我如何使用当前版本运行应用程序 package.jsonReactjs SDK 32.0.0不是有效的SDK,reactjs,react-native,native,expo,Reactjs,React Native,Native,Expo,我的应用程序是在sdk 32.0.0中构建的,以前工作正常,但如果我将应用程序升级到33.0.0,它会给我带来错误,因此面临许多问题,如无法加载节点模块或本地化。请帮助我如何使用当前版本运行应用程序 package.json { "name": "Atcatat", "version": "1.2.3", "description": "Ecommerce Store", "author": "HamzaNisar", "private": true, "main": "
{
"name": "Atcatat",
"version": "1.2.3",
"description": "Ecommerce Store",
"author": "HamzaNisar",
"private": true,
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"setup": "./scripts/setup.sh",
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject"
},
"dependencies": {
"api-ecommerce": "0.0.16",
"axios": "^0.18.0",
"babel-preset-env": "^1.7.0",
"base-64": "^0.1.0",
"currency-formatter": "1.5.3",
"expo": "^32.0.0",
"expo-analytics": "^1.0.7",
"expokit": "1.7.1",
"firebase": "5.8.1",
"html-entities": "^1.2.1",
"lodash": "^4.17.15",
"moment": "2.24.0",
"monet": "0.9.0",
"oauth-1.0a": "1.0.1",
"path": "^0.12.7",
"react": "16.5.0",
"react-instantsearch": "5.3.2",
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
"react-native-animatable": "1.3.1",
"react-native-app-intro-slider": "1.0.1",
"react-native-button": "^2.3.0",
"react-native-check-box": "2.1.7",
"react-native-collapsible": "1.4.0",
"react-native-country-picker-modal": "^0.8.0",
"react-native-drawer": "^2.5.0",
"react-native-dropdownalert": "3.9.1",
"react-native-fluid-slider": "^1.0.2",
"react-native-gifted-chat": "0.7.2",
"react-native-keyboard-aware-scroll-view": "^0.8.0",
"react-native-masked-text": "1.10.1",
"react-native-modalbox": "1.7.1",
"react-native-onesignal": "^3.2.12",
"react-native-paper": "2.6.3",
"react-native-parallax": "^0.3.0",
"react-native-progress-bar-animated": "^1.0.6",
"react-native-radio-buttons": "^1.0.0",
"react-native-render-html": "3.10.0",
"react-native-scrollable-tab-view": "^0.10.0",
"react-native-side-menu": "^1.1.3",
"react-native-snap-carousel": "^3.6.0",
"react-native-swipe-list-view": "1.5.1",
"react-native-swiper": "1.5.14",
"react-native-timeago": "^0.4.0",
"react-native-vector-icons": "6.2.0",
"react-navigation": "^3.0.8",
"react-redux": "5.1.1",
"redux": "^4.0.0",
"redux-persist": "^5.9.1",
"redux-thunk": "^2.3.0",
"reselect": "4.0.0",
"sanitize-html": "1.20.0",
"tcomb-form-native": "0.6.20",
"urijs": "1.19.1",
"url": "^0.11.0",
"url-parse": "1.4.4",
"util": "0.11.1",
"uuid": "3.3.2",
"validate.js": "^0.12.0",
"wpapi": "1.2.1"
},
"devDependencies": {
"babel-jest": "^25.0.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"babel-preset-react-native": "4.0.1",
"jest": "^25.0.0",
"react-test-renderer": "16.7.0",
"reactotron-react-native": "2.1.5",
"reactotron-redux": "2.1.3"
}
}
app.json
{
"expo": {
"name": "Atcatat",
"description": "Atcatat - store",
"slug": "mstore-multivendor",
"privacy": "public",
"sdkVersion": "32.0.0",
"version": "1.4",
"orientation": "portrait",
"primaryColor": "#cccccc",
"icon": "./assets/icons/app.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "cover",
"backgroundColor": "#ffffff"
},
"packagerOpts": {
"assetExts": [
"ttf",
"mp4"
]
},
"assetBundlePatterns": [
"assets/**/*"
],
"ios": {
"bundleIdentifier": "com.atcatat.store",
"supportsTablet": true
},
"android": {
"package": "com.atcatat.store.andr",
"versionCode": 3,
"permissions": []
}
},
"updates": {
"fallbackToCacheTimeout": 0,
"checkAutomatically": "ON_LOAD"
}
}
请检查我的package.json和app.json文件,也许我做错了什么,实际上我从网上商店购买了应用程序,它内置在以前的版本中,我对react native不太了解 我最近在35岁和34岁时也遇到了同样的问题。我相信是因为那条线 ""
无效。尝试重新安装,只需更改app.json中的文本即可。它应该会自动修复所有其他问题。从今天起,
expo cli
具有命令update
因此,如果您运行了expo update 35.0.0或其他版本,但没有解决错误,并且您已退出expo项目
检查app.json
中是否有正确的分离属性。请注意URL上iosexpoiwURL
和androidExpoViewURL
键的sdk编号
"detach": {
"iosExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/ios-v2.13.0-sdk35.0.0-a30ebc9b-3db4-42f4-b677-e468076baf18.tar.gz",
"androidExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/android-v2.13.0-sdk35.0.0-b816b7af-88da-4ca9-87a5-7438f0c21b6e.tar.gz"
}
更新playstore的expo客户端,为我解决此问题 什么意思?我确实给了你我需要更改的文本你是说app.json文件只有32到33