reown-com / appkit

The full stack toolkit to build onchain app UX
https://reown.com/appkit
Apache License 2.0
4.94k stars 1.41k forks source link

[bug] connector.getProvider is not a function (Angular) #3103

Open vanyasav opened 1 month ago

vanyasav commented 1 month ago

Link to minimal reproducible example

https://github.com/vanyasav/angular-reown-wagmi/tree/getProvider_error

Summary

Error appears on the console when disconnecting from wallet or rejecting to connect to a wallet

chunk-WME3VOFU.js?v=c5e50c67:93 ERROR TypeError: connector.getProvider is not a function
    at WagmiAdapter.<anonymous> (client.js:493:73)
    at Generator.next (<anonymous>)
    at chunk-WME3VOFU.js?v=c5e50c67:93:61
    at ZoneAwarePromise (zone.js:2702:25)
    at __async (chunk-WME3VOFU.js?v=c5e50c67:77:10)
    at WagmiAdapter.syncAccount (client.js:456:6)
    at onChange (client.js:415:14)
    at listener (middleware.mjs:227:11)
    at vanilla.mjs:9:37
    at Set.forEach (<anonymous>)

Screencast from 16-10-2024 17:59:18.webm

List of related npm package versions

"@reown/appkit": "^1.1.4",
"@reown/appkit-adapter-wagmi": "^1.1.4",
"viem": "^2.21.27",
"wagmi": "^2.12.18",
vanyasav commented 5 days ago

@rtomas still an issue in 1.3.2