Relative Content

Tag Archive for angulartypescriptbuild

Enabling optimization in production breaks certain components in Angular app

I’m currently using Angular for my app. When I use ng build to compile the project in production environment into a file bundle for static deployment I get console errors, the resulting bundle only works properly if I use the development environment where optimization option is false when building. If I enable optimization, trying the app produces a variety of console errors.