301 Followers
·
Follow

React Native: Cannot read property ‘match’ of undefined

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.

Written by

Software Engineering. Containers. APIs & IPAs.

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