Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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

参考

https://github.com/facebook/react-native/issues/4968

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away