RN项目报错“RCTBundleURLProvider.h” file not found

xiaoxiao2021-02-28  105

“RCTBundleURLProvider.h” file not found

从网上下载别人的ReactNative项目,打开iOS项目的时候,xcode会报错,提示:“RCTBundleURLProvider.h” file not found

解决方法:

打开Mac里面的终端,进入项目所在的文件夹目录;

把项目里面的 node_modules 文件夹删除掉,然后执行 npm install 命令

npm install安装完成后, 执行react-native upgrade命令

最后重新打开Xcode,clean一下,应该就没有问题了,我的就是这么解决的。

转载请注明原文地址: https://www.6miu.com/read-35743.html

最新回复(0)