edge-core-js icon indicating copy to clipboard operation
edge-core-js copied to clipboard

Uncaught TypeError: Not a bridgeable object

Open wolverineks opened this issue 4 years ago • 1 comments

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 avatar Jan 27 '21 14:01 wolverineks

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

wolverineks avatar Jan 30 '21 14:01 wolverineks