Home > Enterprise >  TypeError: crypto.createCipheriv is not a function
TypeError: crypto.createCipheriv is not a function

Time:12-26

vite vue3 uses aes-cross to report: TypeError: crypto.createCipheriv is not a function Version: "vue": "^3.2.23", "vite": "^2.6.4", "aes-cross": "^1.0.9",

CodePudding user response:

The function crypto.createCipheriv is a node.js only function meaning it is not available in the browser like in a Vue app. You should crypto browser screencast

  • Related