Level 1
This worked for me! Thank you so much!
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
In a Laravel / VueJS application, I get this error. I specify that I don't have any functionality developed in the application for the moment, it's just the base installation (without any starter kit).
error when starting dev server:
TypeError: crypto.hash is not a function
at getHash (file:///home/vincent/Documents/PRO/DEV/PERSO/bpf/node_modules/vite/dist/node/chunks/dep-Bsx9IwL8.js:2834:21)
at getLockfileHash (file:///home/vincent/Documents/PRO/DEV/PERSO/bpf/node_modules/vite/dist/node/chunks/dep-Bsx9IwL8.js:11716:9)
at getDepHash (file:///home/vincent/Documents/PRO/DEV/PERSO/bpf/node_modules/vite/dist/node/chunks/dep-Bsx9IwL8.js:11719:23)
at initDepsOptimizerMetadata (file:///home/vincent/Documents/PRO/DEV/PERSO/bpf/node_modules/vite/dist/node/chunks/dep-Bsx9IwL8.js:11180:53)
at createDepsOptimizer (file:///home/vincent/Documents/PRO/DEV/PERSO/bpf/node_modules/vite/dist/node/chunks/dep-Bsx9IwL8.js:34593:17)
at new DevEnvironment (file:///home/vincent/Documents/PRO/DEV/PERSO/bpf/node_modules/vite/dist/node/chunks/dep-Bsx9IwL8.js:35357:109)
at Object.defaultCreateClientDevEnvironment [as createEnvironment] (file:///home/vincent/Documents/PRO/DEV/PERSO/bpf/node_modules/vite/dist/node/chunks/dep-Bsx9IwL8.js:35776:9)
at _createServer (file:///home/vincent/Documents/PRO/DEV/PERSO/bpf/node_modules/vite/dist/node/chunks/dep-Bsx9IwL8.js:28359:132)
at async CAC.<anonymous> (file:///home/vincent/Documents/PRO/DEV/PERSO/bpf/node_modules/vite/dist/node/cli.js:573:18)
Do you any idea what to do ?
V
Please or to participate in this conversation.