Riverscapes / riverscapes-gatsby-theme

The theme for all Gatsby Riverscapes sites
https://riverscapes.github.io/riverscapes-gatsby-theme/
1 stars 1 forks source link

Gatsby Crash: JavaScript heap out of memory! #13

Open MattReimer opened 8 months ago

MattReimer commented 8 months ago

This one seems to only happen sometimes and is very hard to reproduce.

Here are the full logs:

https://gist.github.com/philipbaileynar/0aab128b94e5d466bcd38d8701045c49

As you can see even if we set the maxmium memory to 8192 Mb using --max-old-space-size=8192 we're still maxing it out.

Could be related to the following:

Potential fixes:

  1. We could try upping the memory even more but 8192 is already pretty ridiculous for a webpage
  2. Enable DEV_SSR