万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

ReactNativeのエラー「Unable to resolve module `./../../react-transform-hmr/lib/index.js`」

Unable to resolve module `./../../react-transform-hmr/lib/index.js`

がシミュレータのエラーで出る。

https://stackoverflow.com/questions/52659866/unable-to-resolve-module-react-transform-hmr-lib-index-js

僕は"react": "^16.5.2"``0.57なので関係あるかも?このStackOverflowは0.57.2

これでキャッシュ消す

rm -rf $TMPDIR/react-*; rm -rf $TMPDIR/haste-*; rm -rf $TMPDIR/metro-*; watchman watch-del-all

僕はfishなので rm -rf "$TMPDIR/react-*"; rm -rf "$TMPDIR/haste-*"; rm -rf "$TMPDIR/metro-*"; watchman watch-del-all