Expo(react-native)无法加载生产环境中的所有资源(expo start --no-dev -c)

问题描述 投票:0回答:2

使用

Failed to load all assets
命令运行时,在生产环境中出现
expo start --no-dev -c
错误。 iOS 和 Android 上都会出现此错误。尝试清除 npm 缓存、metro 捆绑器缓存。还是没有运气。无法从论坛或 Expo Discord 社区找到有效的解决方案。非常欢迎任何想法/帮助。

package.json如下

"dependencies": {
    "@react-native-async-storage/async-storage": "~1.17.3",
    "@react-native-community/datetimepicker": "6.1.2",
    "@react-native-community/netinfo": "8.2.0",
    "@react-native-masked-view/masked-view": "0.2.6",
    "@react-navigation/bottom-tabs": "^5.11.15",
    "@react-navigation/drawer": "^5.12.9",
    "@react-navigation/native": "^5.9.8",
    "@react-navigation/stack": "^5.14.9",
    "@reduxjs/toolkit": "^1.7.2",
    "date-fns": "^2.23.0",
    "expo": "^45.0.0",
    "expo-camera": "~12.2.0",
    "expo-dev-client": "~1.0.1",
    "expo-device": "~4.2.0",
    "expo-document-picker": "~10.2.1",
    "expo-file-system": "~14.0.0",
    "expo-font": "~10.1.0",
    "expo-image-picker": "~13.1.1",
    "expo-location": "~14.2.2",
    "expo-notifications": "~0.15.4",
    "expo-splash-screen": "~0.15.1",
    "expo-status-bar": "~1.3.0",
    "expo-updates": "~0.13.3",
    "formik": "^2.2.9",
    "just-clone": "^3.2.1",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-native": "0.68.2",
    "react-native-calendars": "^1.1266.0",
    "react-native-gesture-handler": "~2.2.1",
    "react-native-keyboard-aware-scroll-view": "^0.9.4",
    "react-native-pager-view": "5.4.15",
    "react-native-popup-menu": "^0.15.11",
    "react-native-reanimated": "~2.8.0",
    "react-native-root-toast": "^3.4.0",
    "react-native-safe-area-context": "4.2.4",
    "react-native-screens": "~3.11.1",
    "react-native-svg": "12.3.0",
    "react-native-tab-view": "^2.16.0",
    "react-native-timeline-feed": "^2.0.0",
    "react-native-web": "0.17.7",
    "react-native-webview": "11.18.1",
    "react-redux": "^7.2.6",
    "uuid": "^8.3.2",
    "victory-native": "^35.5.4",
    "yup": "^0.32.9"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "babel-jest": "^25.2.6",
    "eslint": "^7.32.0",
    "eslint-plugin-react": "^7.25.1",
    "eslint-plugin-react-hooks": "^4.2.0",
    "eslint-plugin-react-native": "^3.11.0",
    "jest": "^26.6.3",
    "react-test-renderer": "17.0.1",
    "reactotron-react-native": "^5.0.0",
    "reactotron-redux": "^3.1.3"
  }
react-native expo production
2个回答
0
投票

对我来说,我不小心在

Text
元素中漏掉了 1 个字符。 删除角色后它开始起作用。 尝试检查您最近的代码。


0
投票

似乎没有人解决过这个问题..

© www.soinside.com 2019 - 2024. All rights reserved.