Closed zachstence closed 3 months ago
This is also happening in our new E2E tests in macOS when building a project created from the Evidence template (with a couple small pages added)
https://github.com/evidence-dev/evidence/actions/runs/10169332555/job/28125994939
Things I have tried without noticeable success
node_modules/
: https://github.com/vitejs/vite/issues/2433#issuecomment-1487472995Some relevant information from Rollup (used by Vite under the hood): https://rollupjs.org/troubleshooting/#error-javascript-heap-out-of-memory
any thoughts on ripping out the (undocumented, AFAIK unused) mermaidJS lib and the component its used by
Happens when running
npm run build
- will get aJavaScript heap out of memory
error in the terminalWorkaround is to add this to the command to increase the memory:
NODE_OPTIONS="--max-old-space-size=4096
@archiewood has a theory that it might be related to the MermaidJS library, as the memory issues in deployments/builds started showing up around that time