我有一个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`:
我尝试删除节点模块并重新安装它,但不起作用...... 我能做什么?
"react-navigation": "4.0.10",
"react-navigation-redux-helpers": "4.0.1",
"react-navigation-stack": "1.10.3",
最佳答案
您需要清除 bundler 缓存:https://reactnavigation.org/docs/en/troubleshooting.html#im-getting-an-error-unable-to-resolve-module-after-updating-to-the-latest-version
关于react-native - react 导航错误: Unable to resolve module `./vendor/index' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60134973/