Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'buildConfigurationList' of undefined #127

Closed
VishalVema opened this issue Oct 6, 2018 · 4 comments
Closed

Cannot read property 'buildConfigurationList' of undefined #127

VishalVema opened this issue Oct 6, 2018 · 4 comments

Comments

@VishalVema
Copy link

Hi everyone,

                  whenever I am trying to install the razor pay react native dependency then I am getting this error 

TypeError: Cannot read property 'buildConfigurationList' of undefined at H:\react native dummy\dummy\node_modules\react-native\local-cli\link\ios\getTargets.js:18:68 at Array.map (<anonymous>) at getTargets (H:\react native dummy\dummy\node_modules\react-native\local-cli\link\ios\getTargets.js:16:18) at registerNativeModuleIOS (H:\react native dummy\dummy\node_modules\react-native\local-cli\link\ios\registerNativeModule.js:56:3) at Object.registerNativeModule [as register] (H:\react native dummy\dummy\node_modules\react-native\local-cli\link\ios\common\registerNativeModule.js:15:5) at Object.keys.forEach.platform (H:\react native dummy\dummy\node_modules\react-native\local-cli\link\link.js:74:16) at Array.forEach (<anonymous>) at linkDependency (H:\react native dummy\dummy\node_modules\react-native\local-cli\link\link.js:44:32) at <anonymous>

and as when I am trying to link it manually then I am getting this error

`Loading dependency graph...(node:6356) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: jest-haste-map: @providesModule naming collision:
Duplicate module name: react-native
Paths: H:\react native dummy\dummy\node_modules\react-native-razorpay\node_modules\react-native\package.json collides with H:\react native dummy\dummy\node_modules\react-native\package.json

This error is caused by a @providesModule declaration with the same name across two different files.
(node:6356) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:6356) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: jest-haste-map: @providesModule naming collision:
Duplicate module name: react-native
Paths: H:\react native dummy\dummy\node_modules\react-native-razorpay\node_modules\react-native\package.json collides with H:\react native dummy\dummy\node_modules\react-native\package.json

This error is caused by a @providesModule declaration with the same name across two different files.`

@iThink32
Copy link
Contributor

iThink32 commented Oct 8, 2018

@VishalVema please try the manual linking process provided here , react-native link might now work as expected at times ,
https://facebook.github.io/react-native/docs/linking-libraries-ios

@iThink32
Copy link
Contributor

iThink32 commented Oct 9, 2018

closing due to inactivity.

@iThink32 iThink32 closed this as completed Oct 9, 2018
@VishalVema
Copy link
Author

VishalVema commented Oct 9, 2018 via email

@iThink32
Copy link
Contributor

iThink32 commented Oct 10, 2018

@VishalVema if you get a file duplication error you need to blacklist them or keep them in separate folders.This is a react-native issue , you can try copying the example folder in this repo into a different location and running it as a reference point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants