You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the lib is used in the browser, with react on the front-end, this error occurs - Can't find module "bcrypto".
Error stacktrace
As you can see from the stracktrace we are importing const bech32m = require('bcrypto/lib/encoding/bech32m'); in the bcoin/lib/primitives/address.js file and it's using the bech32m file instead of bench32m-browser file, because it is not mapped in browser property in bcrypto package.json file. I created the issue for the bcrypto lib as well - bcoin-org/bcrypto#66
Here is also related resolved issue but the problem still persist when using the lib in the browser - #1070
The text was updated successfully, but these errors were encountered:
When the lib is used in the browser, with react on the front-end, this error occurs -
Can't find module "bcrypto"
.Error stacktrace
As you can see from the stracktrace we are importing
const bech32m = require('bcrypto/lib/encoding/bech32m');
in thebcoin/lib/primitives/address.js
file and it's using thebech32m
file instead ofbench32m-browser
file, because it is not mapped inbrowser
property in bcryptopackage.json
file. I created the issue for the bcrypto lib as well - bcoin-org/bcrypto#66Here is also related resolved issue but the problem still persist when using the lib in the browser - #1070
The text was updated successfully, but these errors were encountered: