quire
quire copied to clipboard
Large projects run out of node memory and can't preview or build
Before proceeding, check to make sure there isn’t an existing issue for this bug.
- [X] I have searched the existing issues and determined this is a new bug.
Steps to reproduce
-
Start with a project that has a lot of Markdown files and/or large images. Like this one with 500 markdown files: test-size-limit.zip
-
Install the project dependencies (
npm install
) and then runquire preview
Actual behavior
The preview process stops before completing, with this error:
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Expected behavior
The preview process should carry on and a preview site should display at http://localhost:8080/.
Version numbers
macOS Ventura 13.2.1 Node 18.16.0 Quire CLI 1.0.0-rc.7
What browsers are you seeing the problem on?
No response
Relevant Terminal/Shell output
No response
Supporting Information
See Discussion #742 for some more details.
See also the info we have posted in the Troubleshooting Quire docs to help users increase memory allocated to Node: https://quire.getty.edu/docs-v1/troubleshooting/#working-with-very-large-projects.
See: https://jira.getty.edu/browse/DEV-15444
@rrolonNelson Thank you for bringing this to our attention in Discussion #742. We have opened this issue and discussed it with the core Quire team. For now, we are backlogging it while we dig deeper into the root cause and potential solutions. It's also worth noting that it seems to be related to other 11ty performance issues, especially this bug (#2226). Please stay tuned for updates.