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.
There was a bug with the --source-map flag that would throw those errors. The latest version of the @angular-devkit/build-angular
has a fix for this (0.13.6).
The parameter for source maps is
--sourceMap=true|false
See : https://angular.io/cli/test
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With