如何解决如何在雪地和苗条的项目中使用 bip32 包
我们正在创建一个需要使用 bip32 包的具有 svelte 和 snowpack 的应用程序。但是,当我们尝试运行 node.derivePath(
m/44'/60'/0')
时,我们会收到以下错误:
Uncaught (in promise) TypeError: Cannot set property 'needReadable' of undefined
at RIPEMD160.Transform$3 (browser-ae6b73e4.js:3555)
at RIPEMD160.HashBase (browser-ae6b73e4.js:3780)
at new RIPEMD160 (browser-ae6b73e4.js:4050)
at createHash (browser-ae6b73e4.js:7516)
at Object.hash160 (bip32.js:125)
at BIP32.get identifier [as identifier] (bip32.js:1269)
at BIP32.get fingerprint [as fingerprint] (bip32.js:1272)
at BIP32.derive (bip32.js:1355)
at BIP32.deriveHardened (bip32.js:1372)
at bip32.js:1386
在 snowpack.config.js
中,我们有以下设置:
mount: {
public: { url: '/',static: true },src: { url: '/dist' },},plugins: [
'@snowpack/plugin-svelte','@snowpack/plugin-dotenv','@snowpack/plugin-typescript','@snowpack/plugin-postcss','@snowpack/plugin-webpack',],routes: [],optimize: {},packageOptions: {
polyfillNode: true,}
我们是否遗漏了什么导致错误?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。