You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did some more testing and it seems the error only happens in svelte dev mode (with metamask). If I build the application and serve the preview, the metamask pop-up opens.
beeb
changed the title
Unexpected error when trying to use with Svelte
Unexpected error when trying to use injected connector in dev mode (Svelte)
Dec 27, 2024
Check existing issues
Describe the bug
I am trying to create an adapter to use wagmi with svelte 5, but encounter an "unexpected error" in the browser console with the injected connector:
Lengthy error trace
Link to Minimal Reproducible Example
https://stackblitz.com/edit/sveltejs-kit-template-default-bdjexp37?file=src%2Froutes%2F%2Bpage.svelte
Steps To Reproduce
injected()
connectorWhat Wagmi package(s) are you using?
@wagmi/connectors, @wagmi/core
Wagmi Package(s) Version(s)
@wagmi/core@2.16.2, @wagmi/connectors@5.7.2
Viem Version
2.21.57
TypeScript Version
^5.0.0
Anything else?
Here's the
+page.svelte
file.The text was updated successfully, but these errors were encountered: