The following error message is usually related to running out of memory during a job:
Failed to minify the bundle. Error: static/js/12.fb78ba11.chunk.js from Terser Error: Call retries were exceeded
There are a couple of options to resolve this:
- Increase the resource class in use to provide more memory to the job
- Adjust the "max_old_space_size" for NodeJS to a suitable value. For example, if you are using the medium resource class with 4GB of memory, then set this to 3GB.
For additional visibility on memory usage issues, consider logging the maximum memory usage for the job.