[go: up one dir, main page]

Upgrading to v11.8.x asset compilation fails with `FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory`

When trying to upgrade to v11.8.x and running bundle exec gitlab:assets:compile, during the webpack:compile task, it fails with:

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

I had to compile them outside of the rake task, increasing max_old_space_size:

sudo -u git -H node --max_old_space_size=8192 node_modules/.bin/webpack --config config/webpack.config.js --bail

This happened with node v8 and v9

I imagine this will happen each time I upgrade until I find a way to increase max_old_space_size by default.

I'm installing from source

I found the webpack issue and workaround here: https://github.com/webpack/webpack/issues/1914

Edited by Chris Wright