
一般这种情况是因为同事添加了一个第三方的库导致的,重新安装即可。
其实,截图中已经提供了如下解决方法。
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
- Clear watchman watches:
watchman watch-del-all
. - Delete the
node_modules
folder:rm -rf node_modules && npm install
. - Reset packager cache:
rm -fr $TMPDIR/react-*
ornpm start -- --reset-cache
.
网友评论