When I am building Nuxt Js app using AWS Build. Getting below error frequently:
[fatal] Nuxt build error
ERROR in app.f235f70.js from Terser
Error: Call retries were exceeded at ChildProcessWorker.initialize (node_modules/jest-worker/build/workers/ChildProcessWorker.js:191:21)
at ChildProcessWorker._onExit (node_modules/jest-worker/build/workers/ChildProcessWorker.js:268:12)
at ChildProcess.emit (events.js:198:13)
at ChildProcess.EventEmitter.emit (domain.js:448:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
╭─────────────────────────────╮
│ ✖ Nuxt Fatal Error │
│ Error: Nuxt build error │
╰─────────────────────────────╯
npm ERR! code ELIFECYCLE npm ERR! errno 1
This error I am getting frequently. Means if build fails and I again trigger build pipeline, it build successfully without any external config change or code change.
Want to understand root cause and possible solution or fix any.
Do I need to perform any setting changes in aws build pipeline, or any config change or hardware/instance selection?
Let me know if any specific information required.