T
Twenty5mo ago
Vinay

Error: Worker terminated due to reaching memory limit: JS heap out of memory

Error: Worker terminated due to reaching memory limit: JS heap out of memory at new NodeError (node:internal/errors:405:5) at [kOnExit] (node:internal/worker:287:26) at Worker.<computed>.onexit (node:internal/worker:209:20) Emitted 'error' event on Worker instance at: at [kOnExit] (node:internal/worker:287:12) at Worker.<computed>.onexit (node:internal/worker:209:20) { code: 'ERR_WORKER_OUT_OF_MEMORY' } Node.js v18.17.1 Tried with swap memory of 10gb even failing afet it ran for few mins also tried in package.json for sstart scipt gave NODE_OPTIONS=--max-old-space-size=8192 even failed vinay@vinay-Yoga-7-16ARP8:~$ free -h total used free shared buff/cache available Mem: 13Gi 6.6Gi 5.0Gi 186Mi 2.2Gi 6.7Gi Swap: 9Gi 773Mi 9.2Gi
2 Replies
charles
charles5mo ago
that's weird, your configuration look good enough we still need to work on these developer performances frontend is likely the one taking most of the resources. What you can do is to disable typecheck (your IDE will check it anyway) in vite. Remove the checker in the frontend vite.config.ts
Vinay
VinayOP5mo ago
My System is unable to handle the load 🥲
Want results from more Discord servers?
Add your server