1
0

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のpackagerが真っ白になったらwatchmanを更新しよう

Last updated at Posted at 2016-12-18

久しぶりにReactNativeで新しいプロジェクト作ってみたらサンプルが起動すらしなかったのでメモです。

環境

$ react-native --version
react-native-cli: 2.0.1
react-native: 0.39.2

症状

  • react-native init SampleProjectsudoをつけないと最後まで実行されない
  • その後Xcodeから実行しても react native libc++abi.dylib: terminating with uncaught exception of type NSException というエラーがXcode上で出力されてすぐ落ちてしまう
  • react-native run-iosを実行した後、React Packagerが~/path/to/project/node_modules/react-native/packager ~のまま停止する

watchman古かったです。

新しくしましょう。

rm -rf /usr/local/var/run/watchman/ && brew uninstall watchman && brew install watchman

参照
https://github.com/facebook/react-native/issues/2797#issuecomment-253696005

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?