Hi
We are suddenly seeing this error on our builds
8:26:52 AM: error gatsby-core-utils@4.2.0:
This started today (01/12/22) - we have no updated any code, packages etc for some time, it just suddenly started happening today and we can no longer deploy. It suggests updating to Node 18 but this isn’t a quick fix for us and our code will need updating - we need the site updating asap.
You need to run your app locally to make sure it’s not going over the allocated memory resources. If it is (which it seems like), you need to optimise your build process to not consume so much memory.
I was getting this error as well in a similar scenario (no major content changes, significant code changes, etc), and upon forcing an old version of gatsby-core-utils, my Netlify deployments started working again.
I did this by updating my packages.json and adding a resolutions directive to it: