set chunks in splitChunks to 'async'
This should fix the error in the current master-branch. As it was testes as far as possible without creating the dockerimage locally. If this fix shows no effect removing config.mode = 'production';
or setting it to none
in webpack.config.prod.js should be the next step.
Edited by Luzian Bieri