You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use next14 to do my project,but when i use const { connected, connect, disconnect } = useConnection(); async function ConnectWallet() { try { await connect(); console.log("Connected to wallet."); } catch (error) { console.error("Failed to connect to wallet:", error); } }
everytime i try to use function ConnectWallet
it always error:
what can i do to fix this issue?
The text was updated successfully, but these errors were encountered:
I try to use next14 to do my project,but when i use
const { connected, connect, disconnect } = useConnection(); async function ConnectWallet() { try { await connect(); console.log("Connected to wallet."); } catch (error) { console.error("Failed to connect to wallet:", error); } }
everytime i try to use function ConnectWallet
it always error:
what can i do to fix this issue?
The text was updated successfully, but these errors were encountered: