Getting error [Error: undefined Unable to resolve module crypto from node_modules/@toruslabs/eccrypto/dist/eccrypto.cjs.js: crypto could not be found within the project or in these directories:
I see you’re encountering an issue with resolving the crypto package. To address this, I recommend checking out the metro.config.js configuration suggested in our documentation, which you can find here. Additionally, ensure you’ve installed the necessary polyfilled packages as outlined in the guide. This step is crucial for proper functionality. If you’ve followed these steps and still face difficulties, please don’t hesitate to reach out for further assistance. We’re here to help!
It seems the issue you’re encountering might be related to a missing polyfill necessary for secure random number generation. I strongly encourage you to follow the troubleshooting guide available at React Native issues thoroughly. While you may have already configured metro.config.js according to the guide, it’s crucial to continue with the recommended steps. This includes creating a globals.js file and importing it into your index.js.
Moreover, please ensure you include the line import "react-native-get-random-values"; in your index.js. I suspect this could be the key to resolving the issue at hand. Give these steps a try and let me know how it goes. I’m here to help if you have any further questions or run into more challenges.
Hey @maharshi ,
Thank you for your response, I’ve solved this issue but now the flow is getting stuck on loader after selecting the google account and returning login flow failed with error type dismiss error.
getting stuck on this.
And after closing this gives [Web3Auth] login flow failed with error type dismiss error.
Also this is getting stuck on android only.
Apologies for the delay in responding, @rahul. Unfortunately, the loader screenshot doesn’t provide enough detail to pinpoint the issue. To assist you more effectively, could you please provide some console logs? Debugging Android devices will give us more insight into what’s happening. You can find a step-by-step guide on how to proceed with this here. Looking forward to your response so we can get this resolved for you.