I'm trying to build my Angular 6 application with the following command (I'm using the 6.0.4 Angular version and 6.0.8 Angular CLI version):
ng build --prod
All works fine but when I'm trying to display my build application I got the following errors in my web console:
TypeError: c.push is undefined (runtime.6afe30102d8fe7337431.js:1:964)
TypeError: (intermediate value).push is not a function (polyfills.2903ad11212d7d797800.js:1:2)
TypeError: (intermediate value).push is not a function (main.3a04e0ee25d4464aa7c8.js:1:2)
Don't understand why my app works fine with ng serve but not with the prod build
(intermediate value)(intermediate value) is not a functionwhen using the--prodoption. - freethebees