0

你好。

刚刚制作一个应用程序并收到此错误

App.js (647:882) Attempting to change the getter of an unconfigurable property.
Evaluating module://react-navigation.js
Evaluating module://App.js.js
Loading module://App.js

所以,我认为这可能是一个版本问题,所以我也给出了 package.json 代码。

{
  "dependencies": {
    "axios": "*",
    "firebase": "8.2.3",
    "expo-font": "~10.0.3",
    "expo-app-loading": "~1.2.1",
    "react-native-svg": "12.1.1",
    "react-navigation": "4.4.1",
    "@expo/vector-icons": "^12.0.0",
    "react-native-paper": "^3.0.0",
    "react-native-screens": "~3.8.0",
    "@react-navigation/stack": "5.14.4",
    "react-native-reanimated": "~2.2.0",
    "@react-navigation/drawer": "^5.12.5",
    "@react-navigation/native": "^5.9.4",
    "react-native-vector-icons": "9.0.0",
    "react-native-gesture-handler": "~1.10.2",
    "@react-navigation/bottom-tabs": "5.11.9",
    "react-native-safe-area-context": "3.3.2",
    "react-native-responsive-fontsize": "*",
    "@fortawesome/fontawesome-svg-core": "1.2.4",
    "react-native-vector-icons/Ionicons": "*",
    "@react-native-community/masked-view": "^0.1.0",
    "@fortawesome/react-native-fontawesome": "*",
    "@react-navigation/material-bottom-tabs": "*"
  }
}
4

1 回答 1

0

对于未来的访客

是的,我找到了我遇到版本问题的答案,而不是

"react-navigation": "4.4.1",

我必须使用

"react-navigation": "4.2.0",
于 2022-01-28T06:44:03.313 回答