web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

[bug] STUCK in 'Accept connection request in the wallet'

Open fukemy opened this issue 1 year ago • 1 comments

Link to minimal reproducible example

https://stackblitz.com/edit/web3modal-next-template-zdukvm

Summary

I tested with the AppKit ethers with NextJS, follow the step from https://docs.walletconnect.com/appkit/next/core/installation When choose TrustWallet or MetaMask, then it stuck in 'Accept connection request in the wallet'

I installed TrustWallet and MetaMask, login with my Wallet Address, but I openned 2 app and still not see any confirm screen to login. Can you help?

I uploaded the picture here:

IMG_4194

IMG_4195

In the app, nothing show: IMG_4196

List of related npm package versions

    "@walletconnect/client": "^1.8.0",
    "@web3modal/ethers": "^5.1.0",
    "ethers": "^6.13.2",
    "next": "14.2.5",
    "react": "^18",
    "react-dom": "^18",

fukemy avatar Aug 27 '24 09:08 fukemy

Also the same thing happening with the Wagmi version and NextJS

chainxdev avatar Aug 27 '24 20:08 chainxdev

For me the issue was caused by a wrongly configured walletconnect projectId. Changed it to a new id and it started working.

chainxdev avatar Aug 29 '24 15:08 chainxdev

hi @chainxdev , can you explain more about this? I tried to create new projectId but still not working

fukemy avatar Aug 30 '24 02:08 fukemy

In which platform & browser you are trying ?

please uninstall this package -> "@walletconnect/client": "^1.8.0",

rtomas avatar Aug 30 '24 14:08 rtomas

I'm encountering the same issue in my setup.

It appears that this problem always arises when there's a mismatch between the network specified in the code and the network selected in MetaMask. It works fine when both values are the same.

Is this the designed behavior? I've thoroughly reviewed the documentation and explored potential solutions involving Hooks and Events, but unfortunately, I haven't found a viable workaround.

To reproduce this issue, I've followed the guide at https://docs.walletconnect.com/appkit/next/core/installation, choosing Etheres and Bun as the basis for my implementation. While I've made some necessary adjustments, the core functionality remains largely unchanged.

yoheinishikubo avatar Sep 20 '24 10:09 yoheinishikubo

please install Reown new packages

rtomas avatar Oct 15 '24 03:10 rtomas