lorisleiva / solana-wallets-vue

Solana wallet integration for Vue 3
https://solana-wallets-vue-demo.netlify.app/
170 stars 62 forks source link

Added wallet-multi-button and got error: "Uncaught (in promise) TypeError: Cannot read properties of null (reading 'isCE')" #46

Closed leongaban closed 1 year ago

leongaban commented 1 year ago

Branch:

Getting an unknown error

runtime-core.esm-bundler.js:6560 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'isCE') at renderSlot (runtime-core.esm-bundler.js:6560:34) at WalletMultiButton.vue:91:24

In our WalletManage.vue

Imported

import { WalletMultiButton } from 'solana-wallets-vue'
import "solana-wallets-vue/styles.css"

Then just added the component in the markup like so:

<wallet-multi-button></wallet-multi-button>

Our main.js

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'animate.css'

import SolanaWallets from 'solana-wallets-vue'
import 'solana-wallets-vue/styles.css'

import { WalletAdapterNetwork } from "@solana/wallet-adapter-base"

import {
  PhantomWalletAdapter,
  GlowWalletAdapter,
  CoinbaseWalletAdapter,
} from '@solana/wallet-adapter-wallets'

import App from './App.vue'
import router from './router'

const walletOptions = {
  wallets: [
    new PhantomWalletAdapter(),
    new GlowWalletAdapter(),
    new CoinbaseWalletAdapter()
  ],
  autoConnect: true,
}

const app = createApp(App)

app.use(createPinia())
app.use(SolanaWallets, walletOptions)
app.use(router)

app.mount('#app')
lorisleiva commented 1 year ago

Hi there, I think this was to do with a bug in a previous minor version. It should be fixed now so I'll close this but please let me know if the issue is still there and I'll reopen.