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

TypeError: Cannot read property 'number' of undefined in a test #323

Closed
BobAleena opened this issue Dec 10, 2017 · 4 comments
Closed

TypeError: Cannot read property 'number' of undefined in a test #323

BobAleena opened this issue Dec 10, 2017 · 4 comments
Labels

Comments

@BobAleena
Copy link

I am not adding any code other than the import statement. I am unclear on how to resolve this. I am using react-native version 0.49

● Test suite failed to run

  TypeError: Cannot read property 'number' of undefined
    
    at Object.<anonymous> (node_modules/react-native-google-signin/src/GoogleSignin.ios.js:38:144)
    at Object.<anonymous> (node_modules/react-native-google-signin/index.js:1:107)
@cKurultayKalkan
Copy link

same here.

@vonovak vonovak changed the title I am receiving the following: TypeError: Cannot read property 'number' of undefined TypeError: Cannot read property 'number' of undefined in a test May 17, 2018
@AndreiCalazans
Copy link
Collaborator

Can you guys provide a reproducible example for us?

@AndreiCalazans
Copy link
Collaborator

Please check out example app make sure the library is linked correctly.

If issue persists please re-open it with a reproducible example so we can test it out.

@vonovak
Copy link
Member

vonovak commented Aug 29, 2018

@plippy if this happens when running in tests, you'll need to use a mock for the native module, as in https://github.com/react-native-community/react-native-google-signin/pull/492/files

if this happens when you're running the app, please open a new issue with a repro, thanks.

@react-native-google-signin react-native-google-signin locked as resolved and limited conversation to collaborators Aug 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants