在我与导师进行最后一次编码会议后,他建议我跑步
yarn upgrade-interactive [--latest]
并浏览软件包进行更新。
应用程序正在模拟器中编译,但不完全 - 没有图标,并且字体(Caveat,谷歌字体)未加载。此外,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:未知单词
我在分支机构 - 目前有什么建议?我需要返回并撤消一些软件包升级,但我不确定如何最好地继续。
提前谢谢您。
使用npm
npm update
使用纱线
yarn upgrade