[bug] Wallet Connect dialog can't detect some Chrome extension wallets in prod mode for Bitcoin
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
hi @kyimoemin
We can reproduce the issue. (it's working ok on next.js) We are going to solve it ASAP.
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
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 yes it works with latest canary version 1.7.11-e82d88b88d5a5212c792d07063fad10dd5435c1b.0. thank you @rtomas
Should I create separate issue for Xverse wallet being undetectable inside iframe?