Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: connector.getChainId is not a function #4150

Closed
1 task done
yulafezmesi opened this issue Jul 17, 2024 · 1 comment
Closed
1 task done

Error: connector.getChainId is not a function #4150

yulafezmesi opened this issue Jul 17, 2024 · 1 comment

Comments

@yulafezmesi
Copy link
Contributor

yulafezmesi commented Jul 17, 2024

Check existing issues

Describe the bug

when i connected injected provider like metamask and close entire browser pages and open again, the status shows 'connected', however when i try to interact with connector like sending transaction, throws connector.getChainId is not a function error.

in older versions of wagmi/vue(0.0.24) the connection status is not connected in same case, that way user need to interact connector to authroize again.

Screen.Recording.2024-07-17.at.20.25.26.mov

Link to Minimal Reproducible Example

https://wagmivue-bug.pages.dev/

Steps To Reproduce

  • open https://wagmivue-bug.pages.dev/
  • connect with metamask
  • close entire browser tabs and open again
  • try to send any transaction, you'll get the error: connector.getChainId is not a function

source code: https://github.com/yulafezmesi/wagmivue-bug

What Wagmi package(s) are you using?

@wagmi/vue

Wagmi Package(s) Version(s)

@wagmi/vue@0.0.29

Viem Version

2.17.4

TypeScript Version

5.5.3

Anything else?

No response

@tmm tmm closed this as completed in 5bc8c88 Jul 17, 2024
Copy link
Contributor

github-actions bot commented Aug 1, 2024

This issue has been locked since it has been closed for more than 14 days.

If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Wagmi version. If you have any questions or comments you can create a new discussion thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant