when in ‘run’ the command npm run build in my vue2 project i’m getting this response back: morrisjansen@Morriss-MacBook-Pro hyundai-sass-vue-api % npm run build
[email protected] build
vue-cli-service build –no-minimize
⠴ Building for production…
ERROR Failed to compile with 2 errors 3:32:34 PM
error
js/app.980d564f.js from Terser
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:79:19)
at Object.createHash (node:crypto:139:10)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/terser-webpack-plugin/dist/index.js:217:37
at Array.forEach ()
at TerserPlugin.optimizeFn (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/terser-webpack-plugin/dist/index.js:160:259)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :7:1)
at AsyncSeriesHook.lazyCompileHook (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1409:36
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1405:32
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at Compilation.seal (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1342:27)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compiler.js:675:18
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1261:4
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at Compilation.finish (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1253:28)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compiler.js:672:17
at _done (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1)
at eval (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :32:22)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1185:12
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1097:9
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
error
js/chunk-vendors.4e040eae.js from Terser
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:79:19)
at Object.createHash (node:crypto:139:10)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/terser-webpack-plugin/dist/index.js:217:37
at Array.forEach ()
at TerserPlugin.optimizeFn (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/terser-webpack-plugin/dist/index.js:160:259)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :7:1)
at AsyncSeriesHook.lazyCompileHook (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1409:36
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1405:32
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at Compilation.seal (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1342:27)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compiler.js:675:18
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1261:4
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at Compilation.finish (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1253:28)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compiler.js:672:17
at _done (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1)
at eval (eval at create (/Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :32:22)
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1185:12
at /Users/morrisjansen/republish/projecten/host-hyundai/hyundai-sass-vue-api/node_modules/webpack/lib/Compilation.js:1097:9
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
ERROR Build failed with errors.
morrisjansen@Morriss-MacBook-Pro hyundai-sass-vue-api % im not sure how i can fix this issue, is there anyone that can help me out?
i tried google chatgpt and i also tried do download everything again and start over, but nothing helped so far
Morris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.