Closed vikasaroy closed 3 years ago
Hey @roysailor, I just followed your repro steps with a fresh RN CLI app using NPM@6 to install the dependencies (like you have) and was not able to reproduce that module error. I made sure that Amplify Analytics is working as expected too and is able to send events as expected.
I would suggest doing a fresh re-install of your dependencies:
rm -rf node_modules package-lock.json
npm i
npx pod-install
Please let us know if you're still getting that error afterward.
Hey @roysailor, I just followed your repro steps with a fresh RN CLI app using NPM@6 to install the dependencies (like you have) and was not able to reproduce that module error. I made sure that Amplify Analytics is working as expected too and is able to send events as expected.
I would suggest doing a fresh re-install of your dependencies:
1. `rm -rf node_modules package-lock.json` 2. `npm i` 3. `npx pod-install`
Please let us know if you're still getting that error afterward.
This worked for me. Thanks a lot.
It's worth noting that if you're running for android, clean the project first
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.
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication, Analytics
Amplify Categories
analytics
Environment information
Describe the bug
I want to integrate AWS Pinpoint in my application built in react-native. When I add AWS Amplify to my pre-existing react-native project, it is giving me following error:
Expected behavior
It should have discovered the crypto package as it is present in node_module.
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