did-jwt-vc icon indicating copy to clipboard operation
did-jwt-vc copied to clipboard

[BUG] Can't compile in React Native

Open theblockstalk opened this issue 1 year ago • 1 comments

Current Behavior

When I try to issue a credential in React Native with ethr-did, I get several errors:

  1. ReferenceError: Can't find variable: TextEncoder
  2. ReferenceError: Can't find variable: atob
  3. 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

theblockstalk avatar Sep 20 '22 08:09 theblockstalk

Solutions to these three issues can be found in the following PR https://github.com/Tonomy-Foundation/Tonomy-ID/pull/129/files

theblockstalk avatar Sep 20 '22 08:09 theblockstalk