null is not an object (evaluating RNAWSCognito.computeModPow)

See original GitHub issue

Describe the bug I hope this saves someone some time (and frustration)

A user can sign up or view the login page, but upon login, the following error is observed:

null is not an object (evaluating RNAWSCognito.computeModPow)

To Reproduce Create new >=RN0.60.0 project cd ios pod install build

Expected behavior Amplify podspec should correctly list RNAWSCognito.

Smartphone (please complete the following information):

  • All

Additional context remember not to use react-native link when working in >=0.60.0

Fix simply run the following in your project root

yarn add amazon-cognito-identity-js
cd ios
pod install

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:21
  • Comments:38 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
Jonathan0whcommented, Jul 7, 2020

This should be added to README documentation of aws-amplify, especially for the React Native part. I followed the normal README guide to install aws-amplify but also got this error before I googled it and went here. It should be emphasised that both aws-amplify and amazon-cognito-identity-js should be installed for React Native (at least for now as a workaround).

5reactions
kirkryancommented, Jul 22, 2019

I’ve just spotted that you mentioned it’s not in your pod file - that’s explains it. I had to manually add it:

#pod 'RNAWSCognito', :path => '../node_modules/amazon-cognito-identity-js'

Read more comments on GitHub >

github_iconTop Results From Across the Web

null is not an object evaluating RNAWSCognito ... - GitHub
Describe the bug. I'm getting an error: "null is not an object evaluating RNAWSCognito.-computeModPow)", when I'm trying to Log In ; To Reproduce...
Read more >
Cannot read property 'computeModPow' of undefined
Open the RNAWSCognito.xcodeproj and Products folders and drag libRNAWSCognito.a to Linked Frameworks and Libraries under the General tab. Re-run ...
Read more >
AWS-Amplify/Lobby - Gitter
null is not an object (evaluating 'rnawscognito.computemodpow') react native ... When I deploy manually with no Amplify then it works fine.
Read more >
Building a React Native app using AWS Mobile — Part 1
When I went to login I received the error “undefined is not an object(evaluating 'RNAWSCognito.computeModPow')”. After some digging I found ...
Read more >
null is not an object (evaluating 'agorartcchannelmodule.prefix')
When i run my app on the ios, i get the error 'TypeError: null is not an object (evaluating 'AgoraRtcChannelModule.prefix')' Can you give...
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