Closed chasing closed 9 months ago
Hi @chasing, thank you for opening this issue, im working to reproduce this however I haven't been able to get a build to fail with the error you see. Could you share the package.json
you have so I can compare the dependency versions you have?
Hi @chasing, please make sure to run npx pod-install before you build the app and let me know if that helps?
Closing this issue as we have not heard back from you. If you are still experiencing this, please feel free to reply back and provide any information previously requested and we'd be happy to re-open the issue.
Thank you!
I have the same issue just after installing @aws-amplify/react-native
dependency 1.0.16
.
Pod also has been installed
Also tried with node 20\18
Hi @supproduction, what version of aws-amplify
are you using?
The latest 6.0.16
just run yarn add aws-amplify @aws-amplify/react-native
and after it build problem from this topic
Tried aws-amplify 5 - all good, but yeah in this case we don't use @aws-amplify/react-native
.
If you need more info I can provide, cause this error is not informative at all. Don't know how I can even debug it. It would be nice to use the latest version rather than outdated on 1 major
I found the reason. Looks like there is inconcistency with amazon-cognito-identity-js
.
Without cognito
dependency all good. @aws-amplify/react-native + amazon-cognito-identity-js cause conflict.
@supproduction glad you were able to figure this out! And that is correct - v6 of aws-amplify
no longer uses the amazon-cognito-identity-js
package and may cause issues with it. Let me know if you have any additional questions!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication, Push Notifications
Amplify Categories
auth, notifications
Environment information
Describe the bug
I've got a React Native app and I'm attempting to use AWS Amplify to manage push notifications.
AWS Amplify has so far been great for auth via Cognito.
I can't get the app to compile when I try to set up push notifications, though.
I'm following these instructions:
https://docs.amplify.aws/react-native/build-a-backend/push-notifications/set-up-push-notifications/
But the
@aws-amplify/react-native
library is causing problems. When I try to compile and run the app on iOS after adding that library via npm, I get:I'm totally out of ideas about how to get around this. Any ideas?
Expected behavior
I expect
@aws-amplify/react-native
to "just work" and allow the app to compile and run as expected.Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response