crsandeep/simple-react-full-stack

error on npm run build

Opened this issue · 0 comments

C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main>npm run build

simple-react-full-stack@1.0.0 build
webpack --mode production

clean-webpack-plugin: C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\dist has been removed.
Hash: 7537dbd4ce8986eb8770
Version: webpack 4.47.0
Time: 3812ms
Built at: 18/10/2023 9:24:30 am
1 asset
Entrypoint main = bundle.js
[94] (webpack)/buildin/global.js 472 bytes {0} [built]
[133] ./src/client/react.png 14 KiB {0} [built]
[134] multi babel-polyfill ./src/client/index.js 40 bytes {0} [built]
[341] ./src/client/app.css 1.06 KiB {0} [built]
[342] ./node_modules/css-loader/dist/cjs.js!./src/client/app.css 221 bytes {0} [built]
[346] ./src/client/index.js + 1 modules 5.38 KiB {0} [built]
| ./src/client/index.js 181 bytes [built]
| ./src/client/App.js 5.19 KiB [built]
+ 341 hidden modules

ERROR in bundle.js from Terser
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:133:10)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\terser-webpack-plugin\dist\index.js:217:37
at Array.forEach ()
at TerserPlugin.optimizeFn (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\terser-webpack-plugin\dist\index.js:160:259)
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :7:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\Hook.js:154:20)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1409:36
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\Hook.js:154:20)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1405:32
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\Hook.js:154:20)
at Compilation.seal (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1342:27)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compiler.js:675:18
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1261:4
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\Hook.js:154:20)
at Compilation.finish (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1253:28)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compiler.js:672:17
at _done (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :9:1)
at eval (eval at create (C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\tapable\lib\HookCodeFactory.js:33:10), :32:22)
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1185:12
at C:\Users\RUDRA\OneDrive\Desktop\Simple-Multi-Page-Wbsite-wih-Node-main\node_modules\webpack\lib\Compilation.js:1097:9
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./public/index.html 497 bytes {0} [built]
[2] (webpack)/buildin/global.js 472 bytes {0} [built]
[3] (webpack)/buildin/module.js 497 bytes {0} [built]
+ 1 hidden module