react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

Cannot read property 'match' of undefined

Open lightninglu10 opened this issue 8 years ago • 3 comments

When running react-native link react-native-fast-image, I get the error

Cannot read property 'match' of undefined

Stack trace is below:

rnpm-install ERR! Something went wrong while linking. Error: Cannot read property 'match' of undefined 
Please file an issue here: https://github.com/facebook/react-native/issues 

Cannot read property 'match' of undefined

TypeError: Cannot read property 'match' of undefined
    at findLineToAddPod (....react-native/local-cli/link/pods/findLineToAddPod.js:22:13)
    at getLinesToAddEntry (....node_modules/react-native/local-cli/link/pods/registerNativeModule.js:36:8)
    at registerNativeModulePods (....node_modules/react-native/local-cli/link/pods/registerNativeModule.js:25:21)
    at Object.registerNativeModule [as register] (....node_modules/react-native/local-cli/link/ios/common/registerNativeModule.js:13:1)
    at ....node_modules/react-native/local-cli/link/link.js:74:12
    at Array.forEach (<anonymous>)
    at linkDependency$ (....node_modules/react-native/local-cli/link/link.js:44:28)
    at tryCatch (....node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] ....node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:288:22)
    at Generator.prototype.(anonymous function) [as next] (....node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:114:21)

lightninglu10 avatar Nov 22 '18 04:11 lightninglu10

same err

huxiaonb avatar Dec 28 '18 02:12 huxiaonb

add the following line in your Podfile after existing pod '[...] lines: # Add new pods below this line https://github.com/facebook/react-native/issues/16774#issuecomment-350999013 https://medium.com/@sroze/react-native-cannot-read-property-match-of-undefined-997091a019ea

huxiaonb avatar Jan 11 '19 02:01 huxiaonb

Closing as not planned: filed years ago, a workaround was shared in the thread, and the repo has been inactive for a long time. Happy to re-open with fresh details if this still bites on current versions.

lightninglu10 avatar Sep 15 '26 07:09 lightninglu10