After migrating application from angular 5 to 6, on running ng serve the following errors pop up.
Schema validation failed with the following errors:
Updating npm and angular fixed mine:
npm
angular
Assuming you use npm
npm update
then run:
ng update
NB: You might be prompted to update individual dependencies. In my case, I was prompted to run:
ng update @angular/cli and ng update @angular/core.
ng update @angular/cli
ng update @angular/core