微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

0.43.0-rc.1升级遇到的一个坑

nodejs start的时候出异常提示#13017

Unable to resolve module react/lib/ReactDebugCurrentFrame from 
....\node_modules\react-native\Libraries\Renderer\src\renderers\shared\stack\reconciler\ReactCompositeComponent.js
: Module does not exist in the module map or in these directories:
...\node_modules\react\lib

按照提示跑到另外一个issues,clean cache、reset npm搞到最后重装nodejs都木有解决问题。

尼玛是没细看出错信息

npm WARN react-native@0.43.0-rc.1 requires a peer of react@~16.0.0-alpha.3 but none was installed.

按照说明更新react版本,即可

npm install -save react@~16.0.0-alpha.3

原文地址:https://www.jb51.cc/react/304552.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐