web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

[bug] Wallet Connect dialog can't detect some Chrome extension wallets in prod mode for Bitcoin

Open kyimoemin opened this issue 6 months ago • 1 comments

Link to minimal reproducible example

https://github.com/kyimoemin/reown-btc.git

Steps to Reproduce

Run bun install && bun run build && bunx serve -s dist -l 4000. and open connect wallet dialog. You will see Xverse chrome extension wallet and Leather chrome extension wallet are not detected. They are detected in dev mode bun dev tho.

Summary

Xverse and Leather Chrome extension wallet are not detectable in prod mode(build and serve) for Bitcoin blockchain. They are working properly in dev mode bun dev but as soon as I tried on prod mode these wallet are not detectable anymore. The prod mode also has some issue with not able to access public key for Phantom and Ledger wallets too but I've solve that issue with using vite-plugin-node-polyfills but that doesn't help with undetectable wallet issue.

List of related npm package versions

"@reown/appkit": "^1.7.9",
"@reown/appkit-adapter-bitcoin": "^1.7.9",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"vite": "^6.3.5"

Node.js Version

v18.19.1

Package Manager

[email protected]

kyimoemin avatar Jun 17 '25 10:06 kyimoemin

hi @kyimoemin

We can reproduce the issue. (it's working ok on next.js) We are going to solve it ASAP.

rtomas avatar Jun 19 '25 15:06 rtomas

thank you @rtomas, really appreciate that. btw Xverse wallet is not detectable if the page is inside iframe too, even in dev mode. should I open new issue for it or can I describe how to reproduce it here? it is the same repo. here is how to reproduce this one. run the project with bun dev then open a new terminal and run bunx serve -s iframe -l 4000

kyimoemin avatar Jun 20 '25 03:06 kyimoemin

hi @kyimoemin would you mind checking if is happening the same with our latest canary ?

In case you can reproduce the error. please create a new issue

rtomas avatar Jun 21 '25 01:06 rtomas

@rtomas yes it works with latest canary version 1.7.11-e82d88b88d5a5212c792d07063fad10dd5435c1b.0. thank you @rtomas

kyimoemin avatar Jun 23 '25 04:06 kyimoemin

Should I create separate issue for Xverse wallet being undetectable inside iframe?

kyimoemin avatar Jun 23 '25 04:06 kyimoemin