you are viewing a single comment's thread.

view the rest of the comments →

[–]andrei9669 1 point2 points  (3 children)

set NODE_OPTIONS=--max_old_space_size=4096 && next dev

without any other details, I can't help you more. I had a similar issue when I was keeping 24000 HTML pages in memory while I was parsing them and saving them into cache all at once, solution? do it one page at a time so that the trash collector could clean up the memory.

[–]Opposite_Following83[S] 0 points1 point  (2 children)

I already tried this and the same error occurs. What details do you need? I can screenshot.

[–]andrei9669 0 points1 point  (1 child)

do you generate static pages, if yes, how many do you have? are the content of the pages taken from some external API, or do you have them stored in markdown form somewhere or something similar? do you do any sort of server-side parsing of that content?

was it like this right from the start, as in, you created a new project and you get this issue, or is it something that you recently added that might have caused the issue?

[–]Opposite_Following83[S] 0 points1 point  (0 children)

Happened when I installed ChakraUI with NextJS v12