generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error building React Native app #515
Comments
Give me a few to respond to you. I think I know what's going on, but I just want to spin up an example to make sure! |
So, after further discussion on TBD's Discord, the best alternative for us now, until this lib is improved to work properly with React Native, is using your Node.js library. I really appreciate and the guidance and help @blackgirlbytes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are building a React Native app for tickets, where the user will need to scan a QR Code (which is the ticket info, like event name, invitee name, etc) after buying a ticket, and generate a DID using this scanned data. The idea is to use Web5 library to create this wallet/DID for the user in our RN app. I'm kinda new to DID and Web5, so any guidance here will be amazing. Let's talk about the error.
I've installed
"@web5/api": "^0.9.3"
, which I believe is the right lib to create this DID user wallet and added this code in a parent component:The
ed
andsecp
I added by myself since I was having an error and those imports are not in the docs, not sure if it's correctAnd added this one in a children's component, just for testing purposes:
When I try to build and run the app using Expo, I receive this error in my terminal:
And in my Android, I receive this huge red error screen:
Here is my package.json file:
my metro.config.js file:
At some moment, I also saw this different version of the same error, while removing and adding the function call, so looks like it's related with this crypto dependency:
It's a React Native app using Expo, If I remove the
const { web5, did: myDid } = await Web5.connect();
the error is gone.How can I solve this issue?
Thanks!
The text was updated successfully, but these errors were encountered: