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

Unable to use Web3Modal & WalletConnect on Sveltekit #18

Open
kuberaella opened this issue Sep 26, 2021 · 2 comments
Open

Unable to use Web3Modal & WalletConnect on Sveltekit #18

kuberaella opened this issue Sep 26, 2021 · 2 comments
Labels
question Further information is requested

Comments

@kuberaella
Copy link

kuberaella commented Sep 26, 2021

Hey, I'm trying to see the Modal in Sveltekit and I get a blank modal (maybe because providers aren't loaded?)
So I try to add WalletConnect but it throws an error that globals aren't defined.
So I tried const WalletConnectProvider = await import("@walletconnect/web3-provider");
But after that the error just moves to index.ts:19 instead of the main scope
Edit: It happens with all the external wallets

@clbrge
Copy link
Owner

clbrge commented Nov 20, 2021

I'm not sure this is really related to svelte-web3. Could you commit a small test case that reproduce this somewhere ?

@clbrge clbrge added the question Further information is requested label Nov 20, 2021
@cswkim
Copy link

cswkim commented Mar 29, 2022

I've experienced problems with walletconnectprovider/web-3 as well and it seems to be an issue with vite, here are a handful of open tickets: WalletConnect/walletconnect-monorepo#864 and WalletConnect/walletconnect-monorepo#341

I tried the workaround suggested in the last comment on issue 341 about importing the umd dist file, which seems to work for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants