You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The flowing error is presented when calling keystore.generateRandomSeed
ERROR TypeError: crypto.createHash is not a function
at Object.Hash.sha256 (hash.js:18)
at Function.KeyStore._concatAndSha256 (keystore.js:265)
at Function.KeyStore.generateRandomSeed (keystore.js:291)
at RegistrationComponent.newWallet (registration.component.ts:118)
at Object.eval [as handleEvent] (RegistrationComponent.html:13)
at handleEvent (core.js:13547)
at callWithDebugContext (core.js:15056)
at Object.debugHandleEvent [as handleEvent] (core.js:14643)
at dispatchEvent (core.js:9962)
at eval (core.js:10587)
I am using Angular and before doing some JS libraries updates (Web3, EthLightWallet and many others), it was working.
I am not sure if this is related: Importing eth-lightwallet using (import { default as lightwallet } from 'eth-lightwallet';) no longer works. But the 'require' (declare let require: any; const lightwallet = require('eth-lightwallet');) works but introduced the mentioned error.
The flowing error is presented when calling
keystore.generateRandomSeed
I am using Angular and before doing some JS libraries updates (Web3, EthLightWallet and many others), it was working.
I am not sure if this is related: Importing eth-lightwallet using (
import { default as lightwallet } from 'eth-lightwallet';
) no longer works. But the 'require' (declare let require: any; const lightwallet = require('eth-lightwallet');
) works but introduced the mentioned error.Current versions:
node -v
truffle version
npm version
ng version
At package.json:
The text was updated successfully, but these errors were encountered: