Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read properties of undefined (reading 'wallets') #21

Open
ossiHQ opened this issue Jun 13, 2022 · 2 comments

Comments

@ossiHQ
Copy link

ossiHQ commented Jun 13, 2022

What i want to debug

import { walletOptions } from "./../main.js"
import { useWallet } from 'solana-wallets-vue';
import { initWallet } from 'solana-wallets-vue';
initWallet(walletOptions);

console.log(useWallet().connected)

The error message: Uncaught TypeError: Cannot read properties of undefined (reading 'wallets') at createWalletStore (solana-wallets-vue.es.js?313d:417:1) at initWallet (solana-wallets-vue.es.js?313d:591:1)

@lucalaneth
Copy link

@ossiHQ try useWallet().value.connected?

@Tilakraj0308
Copy link

@ossiHQ @lucalaneth Can any of you provide me any details or progress regarding this topic? I am getting error like:
idl.ts:126 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'kind')
at IdlCoder.typeDefLayout (idl.ts:126:1)
at eval (accounts.ts:38:1)
at Array.map ()
at new BorshAccountsCoder (accounts.ts:37:1)
at new BorshCoder (index.ts:48:1)
at new Program (index.ts:290:1)
at eval (VM6663 useWorkspace.js:64:71)
at ReactiveEffect.eval [as fn] (reactivity.esm-bundler.js:987:1)
at ReactiveEffect.run (reactivity.esm-bundler.js:177:1)
at get value (reactivity.esm-bundler.js:1000:1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants