Does the keystore javascript api work in VUE?

import { dump, getAddressFromPriv, recover } from ‘@Albert/aepp-sdk/es/utils/keystore’

When i import like this, it got an error:

bindings.js?dfc1:17 Uncaught TypeError: Cannot read property ‘node’ of undefined
at Object.eval (bindings.js?dfc1:17)
at eval (bindings.js:176)
at Object…/node_modules/bindings/bindings.js (app.js:2793)
at webpack_require (app.js:725)
at fn (app.js:102)
at Object.eval (argon2.js?a5a5:3)
at eval (argon2.js:125)
at Object…/node_modules/argon2/argon2.js (app.js:1916)
at webpack_require (app.js:725)
at fn (app.js:102)

It seemed bindings.js can’t work in vue. Is there another solution make it work ? Thank you .

Hello chenn, currently we do not support keystore in browser, it’s related to argon2 library which we are using there. We will add browser compatibility of keystore in next release of sdk.

1 Like

Hey @nduchak.chain, is this supported already with the 2.4.0 release of the sdk?

Hey @bruteforce.chain,

It’s not yet done, we still working on it.

Okay, thanks for the update.

1 Like