After migrating application from angular 5 to 6, on running ng serve the following errors pop up.
Schema validation failed with the following errors:
I just deleted the node_module folder and run
NPM Install
and it worked fine for me.
It is an Angular 9 solution.