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: Not a bridgeable object #340

Open
wolverineks opened this issue Jan 27, 2021 · 1 comment
Open

Uncaught TypeError: Not a bridgeable object #340

wolverineks opened this issue Jan 27, 2021 · 1 comment

Comments

@wolverineks
Copy link
Contributor

im running into this when archiving then activating a wallet

magic.js:116 Uncaught TypeError: Not a bridgeable object
    at getInstanceMagic (magic.js:116)
    at addListener (manage.js:33)
    at Object.on (bridgeable.js:12)
    at edgeCurrencyWallet.ts:104

wallet._yaob exists when active, but when archived and re-activated it's undefined from then on

console.log({ 
  _yaob: wallet._yaob, // {localId: 27, bridges: Array(0), listeners: {…}, watchers: {…}}
  ...wallet
})
console.log({ 
  _yaob: wallet._yaob, // undefined 
  ...wallet
})
@wolverineks
Copy link
Contributor Author

turns out I was calling watch on an archived wallet
maybe throw an error before that reaches yaob?

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

1 participant