美文网首页
React Native 错误警告小结

React Native 错误警告小结

作者: 西西西瓜sama | 来源:发表于2017-09-07 15:48 被阅读31次

BASE:

WX20170907-154703@2x.png
1.React/RCTBundleURLProvider.h' file not found

Delete node modules, then run npm install (or better yet yarn) and after everything has finished downloading, run react-native upgrade which should give you the option to replace old files with the template ones, by doing so you re-link your native dependencies in react-native which should fix your problem. Of course don't forget to clean your project in Xcode 删除项目中 node modules文件夹,终端运行 npm install ,运行完成后 clearn Xcode. 如果还是不OK的话,如下: xcode Product->Scheme->Manage Schemes click '+' at the Target to select "React" and set the React is shared.


2.'boost/iterator/iterator_adaptor.hpp' file not found

更改package.json

WX20170907-155720@2x.png
3. library not found for -lRCTBlob

解决办法:直接无视 react-native upgrade 一遍 解决.


4.

WX20170908-103500.png
引用路径问题,更改为: import ddd from 'FirstProj/src/ddd'

相关文章

网友评论

      本文标题:React Native 错误警告小结

      本文链接:https://www.haomeiwen.com/subject/vyuijxtx.html