I just upgraded from Angular 4.3.3 to Angular 5.2.1. With doing so now when I build in dev (ng build --dev) the project build just fine. But when building in prod (ng build --prod) and the application loads in the console I get "Uncaught ReferenceError: define is not defined". I have verified that I have updated all the depreciated syntax in my project. I just upgraded from Angular 4.3.3 to Angular 5