7
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

React Native原因不明のエラーの解決方法

Posted at

React Nativeはv1.0にも達しておらず、原因不明なエラーが発生し、ビルドできないことがあります。
原因不明なこともあり、下記のようなエラーメッセージが表示されます。

 This might be related to https://github.com/facebook/react-native/issues/4968
 To resolve try the following:
   1. Clear watchman watches: `watchman watch-del-all`.
   2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
   3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.                          4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`. (null))

問題究明するよりも、指示通りキャッシュを削除して解決することがあります。

watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache

参考

7
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?