I resolved this issue.
Hi Michael!
Thanks for reaching out. I understand you’re facing the “Cannot read property ‘digest’ of undefined” error while using the PnP React Native SDK, specifically when trying to log in with the XrplPrivateKeyProvider.
From what you’ve provided, it looks like you’ve:
- Followed the React Native Expo guide
- Implemented the polyfills from the troubleshooting guide
- Configured your metro setup and imported
globals.js
Here are a few things that might help:
-
Double-Check Polyfills: Ensure all necessary polyfills are correctly applied. Sometimes small things might get missed, especially when setting up new builds.
-
Verify Package Versions: It looks like you are using:
@web3auth/react-native-sdk
:^8.1.0
@web3auth/xrpl-provider
:^9.6.0
Ensure these versions are compatible with the rest of your project’s dependencies.
-
Check Globals Import Path: Confirm that the path to
globals.js
is correct and being executed properly at the app’s entry point. -
Revisit the Linked Thread: Since you mentioned that your issue is identical to the one in the linked thread, keep an eye on possible updates or solutions there as well.
If you could also provide:
- Your Web3Auth initialization and login code snippets
- Screenshots of any specific console errors, if available
This additional info would further help the support team to assist you better. Hope this steers you in the right direction! Let us know how it goes.
Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.
Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. Web3Auth Developer Office Hours
(post deleted by author)
(post deleted by author)