This bug happens since we have migrated to angular 11.
With angular config in angular.json:
“optimization”: true,
“outputHashing”: “all”,
“sourceMap”: true,
“namedChunks”: false,
“aot”: true,
“extractLicenses”: true,
“vendorChunk”: false,
“buildOptimizer”: true
When we build the project and deploy it in nginx, Uncaught SyntaxError: Unexpected token ‘,’ error is thrown.
If we change optimization to false, everything works again