Describe the bug
Currently clicking on the select wallet modal button returns setVisible is not a function in a nextjs app.
To Reproduce
Steps to reproduce the behavior:
- Download the repo at https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/nextjs-starter
- Add these two lines to index.tsx
import { useWallet } from "@solana/wallet-adapter-react";
import { WalletMultiButton } from "@solana/wallet-adapter-react-ui";
- Add a simple modal button to the page:
const wallet = useWallet();
if (!wallet.connected) {
/* If the user's wallet is not connected, display connect wallet button. */
return (
<div
style={{
display: "flex",
justifyContent: "center",
marginTop: "100px",
}}
>
<WalletMultiButton />
</div>
);
}
- Click it
Expected behavior
Should allow me to select a wallet of my choice
Screenshots

Describe the bug
Currently clicking on the select wallet modal button returns setVisible is not a function in a nextjs app.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should allow me to select a wallet of my choice
Screenshots
