React-Native[0.45] 這個版本有個bug,新建的項目運行會報錯: Cannot find entry file index.ios.js in any of the roots, 安卓也會有這個問題。經(jīng)過測試,有個暫時的辦法:
1、先打開終端,cd到項目,然后運行:
npm start -- --reset-cache
2、再開xcode run項目或者安卓run-android
這樣可以正常運行,希望能幫助遇到bug的你。
React-Native[0.45] 這個版本有個bug,新建的項目運行會報錯: Cannot find entry file index.ios.js in any of the roots, 安卓也會有這個問題。經(jīng)過測試,有個暫時的辦法:
1、先打開終端,cd到項目,然后運行:
npm start -- --reset-cache
2、再開xcode run項目或者安卓run-android
這樣可以正常運行,希望能幫助遇到bug的你。