ionic-framework

schema validation failed with the following errors


I know that there are a lot of kind of this questions but mine I think that I did not see that yet.When building my android platform, this error appends.

Schema validation failed with the following errors:
 Data path ".scripts[0]" should NOT have additional properties(lazy).
 Data path ".scripts[0]" should be string.
 Data path ".scripts[0]" should match exactly one schema in oneOf.
[ERROR] An error occurred while running subprocess ng.

So How can I figure it out??? PLEASE


Solution

  • When I moved from @angular-devkit/build-angular version ~0.900.0-rc.3 to version ^0.1100.2 I had the same error. Setting in package.json the following configuration solved my issue:

     "@angular-devkit/build-angular": "~0.900.0-rc.3",