Closed cre8 closed 9 months ago
Our integration test suite includes a react app where crypto is specified as npm:crypto-browserify
:
https://github.com/uport-project/veramo/blob/e8c270f01d0e82d62489b444a3ce22442ad6ca0f/packages/test-react-app/package.json#L31
Perhaps this approach works for you too.
For us it is simpler to maintain overrides like this at the application level instead of trying to create isomorphic packages.
I'll close this issue as there is an easy workaround. Please reopen if this is a blocker.
@mirceanis Ty, it worked! :)
Bug severity 4
Describe the bug When including the Provider into a react native application, I get multiple errors because of the missing crypto library
To Reproduce Steps to reproduce the behaviour:
Expected behaviour The package depends on
@transmute/secp256k1-key-pair
that was designed to run only with nodejs, not in the browser. The fix to add a fallback requires to use webpack instead of the native babel execution.Versions (please complete the following information):