question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Something went wrong while linking. Error: Cannot read property 'match' of undefined"

See original GitHub issue

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

$ react-native info:

Environment:
  OS: macOS Sierra 10.12.6
  Node: 8.9.1
  Yarn: 1.3.2
  npm: 5.5.1
  Watchman: 4.9.0
  Xcode: Xcode 9.1 Build version 9B55
  Android Studio: Not Found

Packages: (wanted => installed)
  react: 16.0.0 => 16.0.0
  react-native: 0.50.3 => 0.50.3

Target Platform: iOS 11.1

Steps to Reproduce

  1. yarn add react-native-blur@3.2.2
  2. react-native link react-native-blur

Expected Behavior

Package linked without error

Actual Behavior

$ react-native link react-native-blur

rnpm-install info Linking react-native-blur android dependency 
rnpm-install info Android module react-native-blur has been successfully linked 
rnpm-install info Linking react-native-blur ios dependency 
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

Note that I haven’t seen a similar error, before RN 0.50 or react-native-blur <= 3.2.0

Issue also reported at https://github.com/react-native-community/react-native-blur/issues/246

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

150reactions
LiuShuoyucommented, Dec 12, 2017

If your iOS project is using CocoaPods (contains Podfile) and linked library has podspec file, then react-native link will link library using Podfile. To support non-trivial Podfiles add # Add new pods below this line comment to places where you expect pods to be added.

49reactions
code-bycommented, Jan 28, 2018

@LiuShuoyu in my project there is Pod file with following content:

target 'MyApp'
pod 'Fabric'
pod 'Crashlytics'

and after these lines I need add # Add new pods below this line?

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Cannot read property 'match' of undefined" during Npm install
Fix Our problem ( Cannot read property 'matches' of undefined ) If you are using node v15! Try with node v14 (npm v6....
Read more >
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 ...
Read more >
npm err! cannot read properties of undefined (reading 'name')
Solution 1: Clear Cache. First you need to clear your cache by this command: npm cache clear --force. Now, run npm install command....
Read more >
Cannot read property 'match' of undefined | RPG Maker Forums
That's not going to be quite right - the error is going to come from a line of code trying to work with...
Read more >
ERROR TypeError: Cannot read property title of undefined
Solved Angular Uncaught Error : Template parse errors : : 'xxxComponent' is not a known element: CodeDocu Developer C# Asp Net Angular.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found