react-native - react 导航错误: Unable to resolve module `./vendor/index'

标签 react-native react-navigation react-navigation-stack

我有一个react-native项目,并尝试升级react-navigation-stack的版本并安装所有错过的库,但后来我降级回来,现在出现错误

error: bundling failed: Error: Unable to resolve module `./vendor/index` from `node_modules/react-navigation-stack/lib/module/index.js`: 

enter image description here

我尝试删除节点模块并重新安装它,但不起作用...... 我能做什么?

"react-navigation": "4.0.10",
"react-navigation-redux-helpers": "4.0.1",
"react-navigation-stack": "1.10.3",

最佳答案

关于react-native - react 导航错误: Unable to resolve module `./vendor/index' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60134973/

相关文章:

react-native - 当用户未登录时如何处理推送通知?

android - React-native 0.65 (targetSdk=30) android build 由于 react-native-reanimated 而失败

react-native - 如何在 Material 顶部选项卡导航器上方呈现单个标题组件?

react-native - 如何从抽屉屏幕更新标题栏

javascript - 如何更新子堆栈?

reactjs - 如何在 React Native 应用程序启动时组合多个任务

javascript - 在 react native firebase 中重新加载应用程序后无法更新状态?

react-native - 新的 ReactNative 应用程序触发 Bundler 错误 : error Unexpected token =

react-native - React Native 获取屏幕组件外的导航对象

reactjs - React 导航 5 props.navigation.replace ("component");与 navigation.navigate() 的工作方式相同(后退按钮仍显示在标题中)