React Native: Cannot read property ‘match’ of undefined

Samuel ROZE
Aug 29, 2018 · 1 min read

A fair amount of times, while running react-native link [package] , I have seen the following error:

rnpm-install ERR! Something went wrong while linking. Error: Cannot read property ‘match’ of undefined

Every time, I’ve Googled it but did not find a satisfying answer and continued my way with manually linking the library. It turns out that all you need to do, is to add the following line in your Podfile after existing pod '[...] lines:

# Add new pods below this line

This comment is used by the “linking process” to know where to add the libraries’ pod(s) in your Podfile . So much thanks to LiuShuoyu for his comment on react-native ‘s repository.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store