Next.js Discord

Discord Forum

Internal error: Error: The render was aborted by the server without a reason.

Unanswered
Crème D’Argent posted this in #help-forum
Open in Discord
Crème D’ArgentOP
I experiencing a frustrating error with next dev. It crashes out of nowhere with the error in the title and when I re-run next dev the behavior in the GIF happens. It kind of deletes the contents of the .next folder. I can't understand why and it is very bizzare.

To fix this, I have to delete node_modules and .next folders, reinstall all the packages, then run next dev . It works fine for about 10-20 minutes and then it crashes again unexpectedly.

Does anybody know what's the problem here? I couldn't fid anything related on Github or anywhere.

4 Replies

Aleutian Tern
Are you running on WSL/Low-end PC or Limited RAM memory ?
Crème D’ArgentOP
@Aleutian Tern No, it is running on Apple M2 Pro chip with 16 Gb RAM. Do you think it may be a memory leak issue?
Aleutian Tern
It wasn’t exactly a memory leak, but in my case, I was running Next.js on a container along with several other services. Due to the lack of RAM, the Next.js development server didn’t have hot reload, and its process was killed after about 10-20 minutes. Once I added more RAM to the container, the problem was resolved. But doesn't seems to be your case.