Relative Content

Tag Archive for node.jsout-of-memorywebpack-5

Webpack 5 cause [ERR_WORKER_OUT_OF_MEMORY] while build on sever

Met a problem, that I try solve for 3 days already. When I try to build my project (Node.JS(21), Vue3, Quasar) with Webpack 5 on local machine (32 GB of RAM) and it builds without problem (uses 12Gb of RAM) But whene I try to build it on server working under docker. There are 216 GB of RAM. But in some moment I got the error
[ERR_WORKER_OUT_OF_MEMORY]: Worker terminated due to reaching memory limit: JS heap out of memory
Old version of project (with Node.JS(16), Vue2, no Quasar) build under Webpack 4 without problems.
webpack.config.js: