正在获取元素类型无效:需要字符串,但未定义:请检查“ HeaderBackButton”的渲染方法

时间:2020-09-01 17:16:04

标签: react-native react-native-android react-navigation-stack

我从一个屏幕导航到另一个屏幕时遇到错误,但是当有人将我的分支拉到他们的计算机上时,应用程序运行得很好。

错误:元素类型无效-预期为字符串(对于内置组件) 或类/函数(用于复合组件),但得到:未定义。您可能忘记了 从定义的文件中导出组件。检查 HeaderBackButton

环境::

节点-v v12.8.0

npm -v 6.14.8

其他软件包: “依赖关系”:{ “ @ react-native-community / async-storage”:“ ^ 1.12.0”, “ @ react-native-community / masked-view”:“ 0.1.10”, “ @ react-navigation / native”:“ 5.6.1”, “ @ react-navigation / stack”:“ ^ 5.9.0”, “ i18next”:“ 19.5.2”, “反应”:“ 16.11.0”, “ react-i18next”:“ 11.7.0”, “ react-native”:“ 0.62.2”, “ react-native-camera”:“ 3.31.0”, “ react-native-config”:“ 1.2.1”, “ react-native-gesture-handler”:“ 1.6.1”, “ react-native-get-random-values”:“ 1.4.0”, “ react-native-location”:“ 2.5.0”, “ react-native-modalize”:“ 2.0.5”, “ react-native-reanimated”:“ 1.9.0”, “ react-native-safe-area-context”:“ 3.0.7”, “ react-native-screens”:“ 2.9.0”, “ react-native-svg”:“ 12.1.0”, “ ts-action”:“ 11.0.0”, “ use-context-selector”:“ 1.1.2”, “ uuid”:“ 8.2.0” }, “ devDependencies”:{ “ @ babel / core”:“ ^ 7.6.2”, “ @ babel / runtime”:“ ^ 7.6.2”, “ @ react-native-community / eslint-config”:“ ^ 0.0.5”, “ @ types / jest”:“ ^ 26.0.3”, “ @ types / react”:“ ^ 16.9.38”, “ @ types / react-native”:“ ^ 0.62.13”, “ @ types / react-test-renderer”:“ ^ 16.9.2”, “ @ types / uuid”:“ ^ 8.0.0”, “ @ typescript-eslint / eslint-plugin”:“ ^ 3.9.1”, “ @ typescript-eslint / parser”:“ ^ 3.9.1”, “ babel-jest”:“ ^ 24.9.0”, “ babel-plugin-module-resolver”:“ ^ 4.0.0”, “ eslint”:“ ^ 6.8.0”, “ eslint-config-prettier”:“ ^ 6.11.0”, “ eslint-plugin-react”:“ ^ 7.20.6”, “ eslint-plugin-react-hooks”:“ ^ 4.1.0”, “ eslint-plugin-react-native”:“ ^ 3.8.1”, “ husky”:“ ^ 4.2.5”, “ jest”:“ ^ 24.9.0”, “ lint-staged”:“ ^ 10.2.11”, “ metro-react-native-babel-preset”:“ ^ 0.58.0”, “更漂亮”:“ ^ 2.0.5”, “ react-native-fast-image”:“ ^ 8.1.5”, “ react-test-renderer”:“ 16.11.0”, “ ts-jest”:“ ^ 26.1.1”, “ tslint”:“ ^ 6.1.2”, “ typescript”:“ ^ 3.9.5” }

0 个答案:

没有答案