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

Wallet Connect Modal Not Working?! [Vite / Replit / TSX] #673

Closed
Shinixagami opened this issue Jun 26, 2022 · 6 comments
Closed

Wallet Connect Modal Not Working?! [Vite / Replit / TSX] #673

Shinixagami opened this issue Jun 26, 2022 · 6 comments
Labels
bug Something isn't working help wanted Extra attention is needed web3

Comments

@Shinixagami
Copy link

Shinixagami commented Jun 26, 2022

This Components Wallet Connect Features does not work.
Link


image
The Components Docs looks like this & I wished they also had detailed documents on the modal. Its just blank & most people ignore the Wallet Connect Option usually using MetaMask.

Main Problem:
-No docs on Wallet Modal
-Wallet Connect Pop-Up not showing
-This might also apply to other components providers like Trust Wallet.

Details:
-No issues pop-up on console
+I am using just the modal itself & calling it via my own button
+This issue also applies to the "ConnectButon" component which is used to call the modal.
+Hosted on Replit (Boosted)
+Uses TypeScript (TSX) -superscript to JSX react. They have no dif.
+Moralis Server
+Metamask is the only button that works (Probably because its native to most browsers & moralis)

Dependencies Installed:
+Vite
+React-Moralis
+Moralis
+Web3UiKit
+Ethers

Take a look at these documents from Web3Modal which is very similar (Which Web3UIKit should built upon.)
Link

Suggestions:
Web3Modal from Wallet Connect is cool -I wish they had the same docs that Web3UiKit has, I also wish it had more robust settings -as I want to be able to pick the Modals Providers & change more things on it. Its the gateway to web3, this should definitely be improved.

@truffleAh
Copy link

same , just 2 days ago it works when I click Metamask option , btw I use create-react-app

@zihangg
Copy link

zihangg commented Jun 27, 2022

+1, can't find any documentation as to how to actually utilize the WalletModal.

@alexnguyennz
Copy link

This seems to be related to the use of Vite which also doesn't play well with react-moralis e.g. MoralisWeb3/react-moralis#228 or MoralisWeb3/react-moralis#229. Other providers like Web3Auth also do not work in a new Vite/React project (but both will work fine in a regular Create-React-App/webpack project).

@zihangg You can check out the props for WalletModal here.

@BillyG83 BillyG83 added bug Something isn't working ready for dev this issue is ready to be picked up web3 help wanted Extra attention is needed and removed ready for dev this issue is ready to be picked up labels Jul 1, 2022
@BillyG83
Copy link
Contributor

BillyG83 commented Jul 1, 2022

thanks for the feedback @Shinixagami @TaiyangAh @zihangg @alexnguyennz

i dont suppose any of you have a proposed solution or could help out here? Else we will pick this up soon but it could be a week to two as the team is very small and it is holiday season, sorry

@AbhinavMV
Copy link
Collaborator

Hey @Shinixagami , @TaiyangAh , @zihangg , @alexnguyennz
TY for using the kit. ❤️
Like @alexnguyennz mentioned in the above comment, this seems to be an issue with vite.
Wallet connect is not getting bundled with Vite. Please check out this solution - https://stackoverflow.com/questions/71067299/walletconnect-fails-to-get-bundled-with-vite

Wallet connect is working correctly in our storybook(It is bundled with webpack5). Checkout - https://web3ui.github.io/web3uikit/?path=/story/1-web3-connectbutton--default
image

@BillyG83
Copy link
Contributor

I am closing this issue as soon this section of the repo will be depreciated so no further developed should be expected. Thanks

If you have questions please reach out to me on Moralis Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed web3
Projects
None yet
Development

No branches or pull requests

6 participants