I am getting this error while running my application. Here are the details of my application.
Angular CLI: 7.3.3
Node: 10.15.1
Angular: 7.2.7
@angular-de
Everyone here is focusing on downgrading @angular-devkit/build-angular to @angular 7.x versions for compatibility, but what they should be doing is to upgrade @angular/cli to angular 8 versions.
The problem is that the system cli is still stuck at an old version and isn't automatically updated by ng update (because it is outside the angular controlled project), so it is being left at an incompatible version when trying to access the angular libraries.
Downgrading @angular-devkit/build-angular just causes more incompatibilities.
npm i --global @angular/cli@latest
will fix the problem without breaking things elsewhere.