码迷,mamicode.com
首页 > Web开发 > 详细

运行.xcworkspace项目后报错:'React/RCTBundleURLProvider.h’ file not found

时间:2018-11-03 23:11:05      阅读:311      评论:0      收藏:0      [点我收藏+]

标签:nod   hub   flow   根据   overflow   bundle   nis   course   loading   

情况:根据https://github.com/rebeccahughes/react-native-device-info添加依赖库,运行.xcworkspacea项目后报错

解决: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(也是在根目录),install 结束后在运行 react-native upgrade

详细:https://stackoverflow.com/questions/40368211/rctbundleurlprovider-h-file-not-found-appdelegate-m

运行.xcworkspace项目后报错:'React/RCTBundleURLProvider.h’ file not found

标签:nod   hub   flow   根据   overflow   bundle   nis   course   loading   

原文地址:https://www.cnblogs.com/honeynm/p/9902251.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!