TypeError: Cannot read property 'computeModPow' of undefined

See original GitHub issue

I was able to signUp on both platforms. But when I was trying to use Auth.signIn from aws-amplify-react-native ^0.1.24, it throws this error on both Android and iOS.

TypeError: Cannot read property 'computeModPow' of undefined
    at BigInteger.nativeModPow [as modPow] (enhance-rn.js:17)
    at AuthenticationHelper.calculateA (AuthenticationHelper.js:167)
    at AuthenticationHelper.getLargeAValue (AuthenticationHelper.js:75)
    at new AuthenticationHelper (AuthenticationHelper.js:53)
    at CognitoUser.authenticateUser (CognitoUser.js:195)
    at Auth.js:236
    at tryCallTwo (core.js:45)
    at doResolve (core.js:200)
    at new Promise (core.js:66)
    at AuthClass.signIn (Auth.js:235)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

12reactions
mlabienieccommented, Jan 19, 2018

@lichao0817 It looks like the native module perhaps isn’t linked. Did you run:

react-native link amazon-cognito-identity-js
0reactions
github-actions[bot]commented, Jun 13, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to use signIn - Cannot read property 'computeModPow ...
Unable to use signIn, fails with the error: Cannot read property 'computeModPow' of undefined If the current behavior is a bug, please provide...
Read more >
Cannot read property 'computeModPow' of undefined
Mainly, I'm trying to make an authentification workflow, but the login functionality throws me the "Cannot read property 'computeModPow' of ...
Read more >
TypeError: Cannot read property 'computeModPow' of undefined
AWS Amplify + React Native - TypeError: Cannot read property 'computeModPow' of undefined. Recently, I've started learning React Native with ...
Read more >
Cannot read property 'computeModPow' of undefined-React ...
Coding example for the question Cannot read property 'computeModPow' of undefined-React Native.
Read more >
error cannot read property 'configurations' of undefined. react ...
I have a jest unit test suite that I'm attempting to run but keep getting Test suite failed to run -- TypeError: Cannot...
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