-
Notifications
You must be signed in to change notification settings - Fork 685
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
[bug] Don't show login pop-up on MM Mobile #746
Comments
Solution found thanks to : #420 Why it's not working with React (without NextJS)? It's not working since Webpack 5.0, Buffer is not installed by default anymore so it creates an issue with WalletConnect (Used when you try to connect with MetaMask from another browser than the integrated one in MetaMask mobile app). I've created a public repository that you can clone to have a working react app that integrates Rainbowkit, Wagmi without NextJS -> https://github.com/LeoClairet05/wagmi-rainbowkit-react-template On my template Wagmi is configured to connect on custom chains Fuji & Avalanche. To make it works on your own project you can follow these steps: Install "react-app-rewired" -> https://www.npmjs.com/package/react-app-rewired Change your package.json scripts as following:
and add the following devDependencies in your package.json: create a new file in your directory named "config-overrides.js" with the following content: ` module.exports = function override(config) { |
@LeoClairet05 will there be support for vite as well? |
Is there a way to undo this process, I added this code and I was able to run it on https, |
Yes, just remove the HTTPS=true from the package.json in "scripts":{"starts" |
I don't know ^^ |
It was weird to see this unexpected behaviour because even with react-scripts start it was pointing to https |
Is this issue fixed in the latest update or do I need to do the above work around, because when I followed the above steps above by @LeoClairet05, I got connection not secure on my localhost. |
Local host will not allow you to connect to unsecured connection by default Hope this helps |
Yeah that issue is resolved. Thanks for the help. Now it's working as expected. |
After struggling for a bit, I finally found the solution for Just go in your <script type="module">
import { Buffer } from "buffer";
window.Buffer = Buffer;
</script> Hope that helps :) @tuminzee |
How to fix this for NextJS? |
@sshmaxime This isn't working now, still getting the |
if yall are still facing problems in 2024 , w rainbowkit v 1.0> , I struggled quite a bit and found a config that magically fixes teh mobile connect issue lol : next.config.js file :
|
Can anyone tell me how to fix it for React Vite + TS app? |
Is there an existing issue for this?
RainbowKit Version
0.5.2
wagmi Version
0.6.0
Current Behavior
RPReplay_Final1663060831.MP4
I try to connect MetaMask on mobile from Safari like on your website where it works fine. But when I try with my React app or with your react example, it doesn't work as you can see on the video (where I'm using your react example).
Expected Behavior
Open MM mobile connect popup
Steps To Reproduce
Clone with-create-react-app
Start and try to connect using Safari on IOS
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: