TwentyT
Twenty11mo ago
2 replies
Mrldhr

local development wsl setup: JS heap out of memory

how much is required?


npx nx start twenty-front

 NX   Running target start for project twenty-front and 1 task it depends on:

——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

> nx run twenty-shared:build  [existing outputs match the cache, left as is]


> nx run twenty-front:start

/home/muralidhar1404/twenty/packages/twenty-front
/home/muralidhar1404/twenty/packages/twenty-front
  ➜  Local:   http://localhost:3001/
  ➜  Network: use --host to expose
node:events:492
      throw er; // Unhandled 'error' event
      ^

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

——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 NX   Running target start for project twenty-front and 1 task it depends on failed

Failed tasks:

- twenty-front:start

Hint: run the command with --verbose for more details.


WSL ram details:
free -h
               total        used        free      shared  buff/cache   available
Mem:            11Gi       4.3Gi       5.8Gi        15Mi       1.9Gi       7.3Gi
Swap:          3.0Gi          0B       3.0Gi
Was this page helpful?