I'm trying to build react-application(create-app-react based) for production using react-scripts, but I'm getting error on npm run build:
Creating an optimized production build...Completed in 69ms
/var/www/html/test_project/node_modules/react-scripts/scripts/build.js:19
throw err;
^
RpcIpcMessagePortClosedError: Process 701148 exited [SIGKILL].
at /var/www/html/test_project/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:19:23
at Generator.next (<anonymous>)
at /var/www/html/test_project/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:8:71
at new Promise (<anonymous>)
at __awaiter (/var/www/html/test_project/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:4:12)
at ChildProcess.handleExit (/var/www/html/test_project/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:18:42)
at ChildProcess.emit (events.js:400:28)
at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12) {
code: null,
signal: 'SIGKILL'
I'm using node-js v14.19.3
and npm 8.12.1
--verbose mode didnt provide any useful details in logs. Maybe somebody had such cases. How this error can be fixed?
react-scripts build? My error is completely different and I don't even know which stage of build is causing it. It seems to be related to an scss file but complains about Array.forEach 🤷