react-native执行react-native run-ios报错,希望能解决

发布于 2022-09-11 22:08:53 字数 1341 浏览 19 评论 0

1,技术栈react + react native + dva + ant design mobile ui
React-navgatio
刚开始搭建项目,初步搭建好各种框架时正常运行,写了几个js文件之后就报错。
2,试过错误提示中所有方法和GitHub、Stack Overflow的方法都没有解决
2 报错信息:
Unable to resolve module react-navigation-redux-helpers from /Users/dev1/code/RN-APP/jtxapp/decopro/src/router.js: Module react-navigation-redux-helpers does not exist in the Haste module map

This might be related to https://github.com/facebook/r...
To resolve try the following:

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache.
  4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start
0x0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文