0

**i am using node v16.18.0 **

react-scripts\scripts\build.js:19
  throw err;
  ^

TypeError: Cannot read properties of undefined (reading 'strict')
    at D:\medcheck\node_modules\webpack\lib\optimize\ModuleConcatenationPlugin.js:151:29
    at Hook.eval [as callAsync] (eval at create (D:\medcheck\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:7:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (D:\medcheck\node_modules\tapable\lib\Hook.js:18:14)
    at D:\medcheck\node_modules\webpack\lib\Compilation.js:2968:36
    at eval (eval at create (D:\medcheck\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:11:1)
    at D:\medcheck\node_modules\html-webpack-plugin\lib\cached-child-compiler.js:237:53
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at runNextTicks (node:internal/process/task_queues:65:3)    
    at processImmediate (node:internal/timers:437:9)

This used to build but recently began failing. I tried removing the packages that were added sometime before the failed builds happened but that didn't help (uppy and axios packages) so I am not sure if that's even related.

i am try like change config file.

"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build",
  • If you use uppy or axios packages in your project, the build may fail if they are missing. I would suggest installing them back. Would you provide more detail? Error logs, code, etc. – Jay F. Nov 26 '22 at 18:14

0 Answers0