The error drops with some unclear frequency
Uncaught (in promise) Error: failed to get balance of account [account]: n: Expected the value to satisfy a union of 'type | type', but received: [object Object]
This problem not only for Phantom wallet, also for trust wallet and solflare wallet
Link to minimal reproducible example
https://appkit-lab.reown.com/library/solana/
Summary
The error drops with some unclear frequency
Uncaught (in promise) Error: failed to get balance of account [account]: n: Expected the value to satisfy a union of 'type | type', but received: [object Object]
This problem not only for Phantom wallet, also for trust wallet and solflare wallet
Network - solana mainnet
https://github.com/user-attachments/assets/d341b12c-cb2c-40c2-8123-f1045d0fbdd2
List of related npm package versions
"@reown/appkit": "1.0.7", "@reown/appkit-adapter-solana": "1.0.7", "@tanstack/react-query": "5.24.8", "react": "18.2.0", "react-dom": "18.2.0", "vite": "5.2.11", "@solana/wallet-adapter-backpack": "0.1.14", "@solana/wallet-adapter-wallets": "0.19.32"