Its the production optimizer causing the issues.
Two ways to fix this:
In your angular.json file add the uncompressed versions of the files needed. Let the compiler compress the files.
Second, but not recommended, is to set "buildOptimizer" to false.