Closed NICHTJ3 closed 2 years ago
So I added some logging to the build and found we actually only have 324 pages being made which doesn't seem like much
Hi @NICHTJ3!
Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it.
If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look.
Thanks for using Gatsby! 💜
Hey @tyhopp,
I'll create a minimal reproduction later on but it appears to actually be a bug on my end to do with my template in gatsby-(ssr/browser).js, but if I comment out the method the errors being thrown from in gatsby here I get a slightly more useful error message.
success Writing page-data.json files to public directory - 0.094s - 27/27 287.95/s
ERROR
Page data from page-data.json for the failed page "/edms/xero-developer-update-july-2021/": {
"componentChunkName": "component---src-templates-edm-edm-container-tsx",
"path": "/edms/Xero-Developer-Update-July-2021/",
"result": {
.......
}
}
failed Building static HTML for pages - 2.409s
ERROR #95313
Building static HTML failed for path "/edms/xero-developer-update-july-2021/"
See our docs page for more info on this error: https://gatsby.dev/debug-html
This was once again an issue with react-helmet, somewhat related to this issue here. I'm not sure if there's a better way to report these kinds of errors but I'm going to close this issue for now but it might still help someone narrow it down 😄
@NICHTJ3 Thanks for sharing the result, glad you were able to resolve it!
Okay, so after days of debugging I figured out what this was actually being caused by. For some reason circular imports just started breaking the codebase I assume it was from a babel/webpack update or something that happened at the same time but replacing imports in components that import from the same barrel (index.tsx) that they're exported from fixed this 🥲. Turns out the dev server also was erroring but only in the browser window and only on pages that used the components 🤦
I experienced that same as @NICHTJ3
Preliminary Checks
Description
What
gatsby build
is failing withRangeError: Maximum call stack size exceeded
I believe this is related to code added for DSG here.Let me know if any more info is needed and I'll do my best to supply it 😄 I've been unable to repro in any generated projects even with the same plugins so all I can say is there are a lot of pages in the project so it's probably be related to the size of data
NOTE:
gatsby develop
does not fail.Reproduction Link
https://github.com/gatsbyjs/gatsby
Steps to Reproduce
gatsby build
...Expected Result
Build passes
Actual Result
Environment
Config Flags
No response