Friction

Pain point · Reliability & bugs · Causes churn

Next 12 with SWC crashes with heap out of memory in an Nx monorepo

2 source threads · first seen 2019-07 · last seen 2021-12

Summary

After moving from Next 11 to 12 in a monorepo, the build crashes with a JavaScript heap out of memory error even with more memory allocated.

Affects
Team with an Nx monorepo using SSR
Workaround
Increasing memory did not help

Evidence

Excerpts are copied word for word from the source; follow the link to read it in full.

“We have tried adding more memory but we feel that the issue lies elsewhere”

“When I run `next build` the process goes out of memory and it cannot build the application”

Report this item