[Vuejs]-Web3.eth.accounts.decrypt throws error at cryp.createDecipheriv

0👍

I decided to edit the index.js from web3-eth-accounts and change the

var cryp = (typeof global === 'undefined') ? require('crypto-browserify') : require('crypto');

into just

var cryp = require('crypto-browserify');

It works now. But I still don’t know whats wrong with my angular set up. The vue app has the same code but it is working.

Leave a comment