美文网首页
RN升级后报错汇总

RN升级后报错汇总

作者: 要开心 | 来源:发表于2019-04-02 11:54 被阅读0次
  1. Android 下 /node_modules/react-native/third-party/glog-0.3.4/test-driver'. Couldn't follow symbolic link.
    根據github上的回報,只要遇到 Couldn't follow symbolic link. 就刪除發生錯誤的資料夾即可。

  2. 解决升级到Xcode10,react native项目运行报错问题

2018年10月30日 16:45:31 SemperChan 阅读数:2214

<article class="baidu_pl" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: -webkit-standard; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; box-sizing: inherit; outline: 0px; margin: 0px; padding: 16px 0px 0px; display: block; position: relative;">

错误一:Xcode 10: Build input file double-conversion cannot be found

error: Build input file cannot be found: '../node_modules/react-native/third-party/double-conversion-1.1.6/src/strtod.cc'

configure: error: in `../node_modules/react-native/third-party/glog-0.3.4'

解决办法,在项目文件夹下执行:

第一步
cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../
第二步
cd node_modules/react-native/third-party/glog-0.3.4/ && ../../scripts/ios-configure-glog.sh && cd ../../../../

注意:第二步命令“golg-0.3.4”需要改成你的glog版本

可以在以下文件夹查看你的golg,如图

image
第三步重启服务:npm start

错误二:error: Build input file cannot be found: '../node_modules/react-native/Libraries/WebSocket/libfishhook.a'

这是缺少libfishhook.a文件造成的,我们可以手动添加它,如图:

image image

转载自:https://blog.csdn.net/chensenp/article/details/83543724

相关文章

网友评论

      本文标题:RN升级后报错汇总

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