Next.js Discord

Discord Forum

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
when running the npm run dev command with and without --turbopack My dev server consumes so much memory that it crashes. I am using lots of shadcn components and drizzle and better auth.

I can run npm run build just fine. But face the same issue when I then run npm run start

Any suggestions?

1 Reply

Transvaal lionOP
Turns out recursivly calling a component is bad 🤷