-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Workaround for Vite dev dynamic import of CoinbaseWalletSDK
introduced in PR #473 is needed again
#3586
Comments
We also experience this issue. Also, when there is an error https://github.com/wevm/wagmi/blob/main/packages/core/src/actions/reconnect.ts#L68 |
+1 confirming that having the same error with Stack trace: Uncaught (in promise) TypeError: CoinbaseWalletSDK is not a constructor
at Object.getProvider (@web3modal_wagmi.js?v=e91df78f:148:15)
at async reconnect (chunk-SA6P325H.js?v=15838233:2350:23)
getProvider @ @web3modal wagmi. js?v=e91df78f: 148
await in getProvider (async)
onMount @ chunk-SA6P325H.js?v=15838233:2890
Hydrate @ wagmi.js?v=ac9173bf:296
renderWithHooks @ react-dom client.js?v=ff4dfOda:19183
mountIndeterminateComponent @ react-dom client.js?v=ff4df0da: 21912 |
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 other comments you can create a new discussion. |
Describe the bug
Issue #383's problem has resurfaced since commit 895f28e.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/vitejs-vite-jxnjko
Steps To Reproduce
TypeError: CoinbaseWalletSDK is not a constructor
occurs in console and the button is unresponsive.If install
wagmi@2.5.5
insteadlatest(2.5.6)
it works well. (except that it requires click the button twice..)Wagmi Version
2.5.6
Viem Version
2.7.8
TypeScript Version
5.2.2
Check existing issues
Anything else?
No response
The text was updated successfully, but these errors were encountered: