在本地运行时,我可以打开 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)
有人知道为什么会这样吗?