Electron-react-boilerplate: JavaScript heap out of memory

Created on 7 Nov 2017  路  3Comments  路  Source: electron-react-boilerplate/electron-react-boilerplate

Receiving FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory when running yarnpkg build in the build-renderer step. yarnpkg dev runs fine without error.

Most helpful comment

@goldquest Using @brandonmp's answer here fixed it for me. Use --max-old-space-size like this:

"build-renderer": "cross-env NODE_ENV=production node --max-old-space-size=4076 --trace-warnings ...


All 3 comments

Did you find a solution or ways to debug it?

@cameronb23 why closed?

@goldquest Using @brandonmp's answer here fixed it for me. Use --max-old-space-size like this:

"build-renderer": "cross-env NODE_ENV=production node --max-old-space-size=4076 --trace-warnings ...


Was this page helpful?
0 / 5 - 0 ratings

Related issues

fandy picture fandy  路  3Comments

piya23300 picture piya23300  路  3Comments

davej picture davej  路  4Comments

yourfavorite picture yourfavorite  路  3Comments

aguynamedben picture aguynamedben  路  3Comments