did-jwt-vc
did-jwt-vc copied to clipboard
[BUG] Can't compile in React Native
Current Behavior
When I try to issue a credential in React Native with ethr-did
, I get several errors:
- ReferenceError: Can't find variable: TextEncoder
- ReferenceError: Can't find variable: atob
- Invariant Violation: "main" has not been registered
Expected Behavior
No errors.
Failure Information
Each error presented itself, I solved it and then the next error was shown. See the PR here for the errors and solutions (using polyfills).
Steps to Reproduce
See PR.
Environment Details
- Nodejs: 16.4.1
- OS Compiler Host Version: Linux Ubuntu 20.0.4
- React Native expo compiler: 5.5.1
- Device details: Android 11, Samsung A40
Failure Logs/Screenshots
See PR for error details and solutions
https://github.com/Tonomy-Foundation/Tonomy-ID/pull/129/files
Solutions to these three issues can be found in the following PR https://github.com/Tonomy-Foundation/Tonomy-ID/pull/129/files