After updating to new version release build failed. Any ideas how does this fix?
FAILURE: Build failed with an exception.
* What went wrong:
Could not list contents of '/Users/vomchik/Projects/LITS/toolook/toolook-app-react-native/node_modules/react-native/third-party/glog-0.3.4/test-driver'. Couldn't follow symbolic link.
Same problem here, it happens to me when I try to build a release APK for Android at the :app:bundleReleaseJsAndAssets
step.
As a temporary solution deleting the whole node_modules
folder and re-installing dependencies fixes it.
I use a Makefile that points its clean target to a full clean script. I have found most issues like this can be solved by killing all simulators, packagers, etc, running clean, then reinstalling node_modules:
clean.sh
watchman watch-del-all
rm -rf node_modules
rm -rf $TMPDIR/react-*
Hey, thanks for reporting this issue!
It looks like your description is missing some necessary information. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported.
I am going to close this, but feel free to open a new issue with the additional information provided. Thanks!
same issue here! whats going on with latest react native release? is fully os issues in both platforms :(
Same error for me but after a cleanup all works.
I have the same error. Cleaning the node_modules
works for me but the error reappears after every Xcode build.
It seems that the script ios-install-third-party.sh
recreates the third-party
folder with its content in node_modules/react-native
.
The symbolic link mentioned in the error:
node_modules/react-native/third-party/glog-0.3.4/test-driver'. Couldn't follow symbolic link.
should point to automake
test-driver -> /usr/share/automake-1.14/test-driver
which does not exist in my case. I did reinstall xcode devtools but it didn't solve the issue.
Can it be a wrong xcode setup/install on my side? I don't want to clean the folder between android and ios builds every times.
Xcode 8.3.3
Also having exact same issue. Solution provided by @olivierkaisin seems to work, but it is indeed frustrating having to delete node_modules at each build.
after every node_modules reinstall i have to update the build tools versions.. so the solution provided by @olivierkaisin works, but please fix this bug, every android build takes 10 times longer than before :(
This issue is closed. If this is still affecting you, please open a new issue and make sure to fill out everything in the template as documented in the contribution guidelines. Thanks!
This worked for me: to delete the broken test-driver-link as follows
unlink node_modules/react-native/third-party/glog-0.3.4/test-driver
This is a problem. Please resolve this. It is very annoying
@Guardiannw see my earlier comment.
@hramos Not every issue should require all details to be filled out before it's looked into...it's not always something you can document the steps for in order to reproduce. Closing a genuine issue because it doesn't meet your guidelines is pretty poor form.
My goal here is to get the issue tracker into a better state. There aren't enough people following up and submitting PRs to fix the existing set of open issues. Opening a new issue without providing a minimum level of details is not helping out. I'm happy to reconsider the guidelines once the number of outstanding issues is in better shape. Thanks for understanding.
The linked issue https://github.com/facebook/react-native/issues/14464 above is perfectly describing what is happening in this issue so there is no need for that one to stay open.
@itinance thanks for the answer, for me worked fine!
Most helpful comment
This worked for me: to delete the broken test-driver-link as follows
unlink node_modules/react-native/third-party/glog-0.3.4/test-driver