I am building my angular application using the angular CLI command
ng test --source-map=false
Everything was working fine, but suddenly I have started encountering the below error
Schema validation failed with the following errors:
Data path ".sourceMap" should be object.
Data path ".sourceMap" should be boolean.
Data path ".sourceMap" should match exactly one schema in oneOf.
On some inspection, the issue seems to originate from the --source-map parameter, but not sure about the exact cause.
@angular-devkit/build-angular. After downgrading this package everything works fine again.@angular-devkit/build-angularwith angular 6. Btw. I've downgraded@angular-devkit/build-angularto~0.8.9which seems to be the last compatible version.