WalletConnect 模式错误:无法读取未定义的属性(读取“importKey”)

问题描述 投票:0回答:0

在本地运行时,我可以打开 WalletConnect 模式并扫描二维码,没有错误。但是,当我将我的应用程序托管在 VM (Ubuntu 20.04) 上时,在打开 WalletConnect 模式并显示 QR 码后,我在控制台中收到以下错误:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'importKey')
    at browserImportKey (browser.ts:44:1)
    at browserAesEncrypt (browser.ts:59:1)
    at Module.aesCbcEncrypt (aes.ts:8:1)
    at Module.encrypt (index.ts:49:1)
    at async WalletConnect._encrypt (index.ts:1172:1)
    at async WalletConnect._sendRequest (index.ts:790:1)

有人知道为什么会这样吗?

web3js wallet-connect
© www.soinside.com 2019 - 2024. All rights reserved.