When integrating the Farcaster Mini-App connector (@farcaster/miniapp-wagmi-connector) into a Wagmi config that also supports Coinbase Wallet and other injected providers, the dApp fails to connect correctly inside the Coinbase Wallet in-app browser.
The problem is that the Farcaster connector is always added globally to the Wagmi config. This means:
In Coinbase Wallet’s in-app browser, Wagmi tries to use the Farcaster connector instead of the injected Coinbase provider.
This results in UnsupportedMethodError or failed connections (eth_call / sendTransaction not supported).
The dApp works fine in Farcaster Mini-App itself, but breaks in Coinbase’s browser.
Expected behavior
The Farcaster connector should only be registered when actually inside the Farcaster Mini-App environment.
In all other environments (normal browsers, Coinbase Wallet browser, MetaMask, etc.), Wagmi should ignore the Farcaster connector and just use the normal injected / walletConnect / coinbaseWallet connectors.
Steps to reproduce
Add miniAppConnector() to Wagmi config alongside other connectors (MetaMask, coinbaseWallet, walletConnect, etc.).
Open the dApp inside Coinbase Wallet in-app browser.
Try to connect → connection fails with provider errors.