css 软件包更新出错(React Native项目)

clj7thdc  于 4个月前  发布在  React
关注(0)|答案(1)|浏览(71)

在我和导师的最后一次编程会议之后,他建议我跑步。

yarn upgrade-interactive [--latest]

字符串
并通过软件包进行更新。
该应用程序在模拟器中编译,但没有完全编译-没有图标,字体(警告,谷歌字体)没有加载。此外,RN选择器选择存在问题。
我开始根据颜色编码系统(红色优先)升级软件包。
这是我的package.json文件:

{
  "name": "rituals",
  "version": "1.0.0",
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@expo-google-fonts/caveat": "^0.2.3",
    "@fortawesome/angular-fontawesome": "^0.14.1",
    "@fortawesome/fontawesome-svg-core": "^6.5.1",
    "@fortawesome/react-fontawesome": "^0.2.0",
    "@react-native-async-storage/async-storage": "^1.21.0",
    "@react-native-community/datetimepicker": "^7.6.2",
    "@react-native-community/picker": "^1.8.1",
    "@react-native-picker/picker": "^2.6.1",
    "@react-navigation/bottom-tabs": "^6.5.7",
    "@react-navigation/native": "^6.1.9",
    "@react-navigation/native-stack": "^6.9.12",
    "@react-navigation/stack": "^6.3.20",
    "@tanstack/react-query": "^5.15.0",
    "axios": "^1.6.2",
    "chalk": "^5.3.0",
    "dotenv": "^16.0.3",
    "expo": "~49.0.21",
    "expo-constants": "^14.4.2",
    "expo-device": "^5.6.0",
    "expo-font": "~11.6.0",
    "expo-image-picker": "~14.5.0",
    "expo-linking": "^6.0.0",
    "expo-notifications": "^0.23.0",
    "expo-status-bar": "~1.4.4",
    "moment": "^2.29.4",
    "react": "18.2.0",
    "react-native": "0.73.1",
    "react-native-dotenv": "^3.4.8",
    "react-native-elements": "^3.4.3",
    "react-native-gesture-handler": "^2.9.0",
    "react-native-modal": "^13.0.1",
    "react-native-pager-view": "^6.2.3",
    "react-native-picker-select": "^9.0.0",
    "react-native-reanimated": "3.3.0",
    "react-native-safe-area-context": "^4.5.0",
    "react-native-screens": "^3.20.0",
    "react-native-swipe-gestures": "^1.0.5",
    "react-native-tab-view": "3.5.2",
    "react-native-toast-message": "^2.1.6",
    "react-native-web": "^0.19.10",
    "react-native-webview": "13.6.3",
    "react-query": "^3.39.3",
    "react-uuid": "^2.0.0",
    "styled-components": "^6.1.3"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@typescript-eslint/eslint-plugin": "^6.16.0",
    "@typescript-eslint/parser": "^6.16.0",
    "eslint": "^8.38.0",
    "eslint-plugin-react": "^7.32.2",
    "prettier": "^3.1.1"
  },
  "private": true
}


我和以前一样:应用程序编译(没有加载图标或警告字体,但是)和任何交互结果如下:渲染错误:9:34:未知词
我在一个分支上-此时有什么建议?我需要返回并撤消一些软件包升级,但我不知道如何最好地进行。
先谢谢你了。

lsmepo6l

lsmepo6l1#

使用npm

npm update

字符串
使用yarn

yarn upgrade

相关问题