'React/RCTBundleURLProvider.h' file not found

'React/RCTBundleURLProvider.h' file not found

新建RN項目時在iOS端用xcode跑時有時會遇到 'React/RCTBundleURLProvider.h' file not found 錯誤,遇到這種錯誤一般有一下幾種情況:

1. 沒有執行 npm install 命令,沒有安裝依賴,此時執行 npm install 安裝依賴即可.

2. 依賴已經安裝,但還是會報這個錯,此時將項目下node_modules文件夾刪除,再次執行 npm install 命令安裝依賴即可.

發佈了43 篇原創文章 · 獲贊 56 · 訪問量 16萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章