1. Requiring unknown module "xxx"
npm start
重啟packager
Requiring unknown module
2. 卡在“Building xx Rect | Running 1 of 2 custom shell scripts”
npm run reset
或者
watchman watch-del-all
rm -rf node_modules && npm install
npm start -- --reset-cache
3. 'CodePush/CodePush.h' file not found
切換分支后總是Build失敗,之前是好的,正確的方法是
執(zhí)行 npm run dev:ios-max 或者 npm run dev:ios, 這才是正確的姿勢(shì)
4. double-conversion issues
cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../
cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh && cd ../../../../