I have just updated my app to Angular 9 and Ionic 5, but whenever I try to build the app I get the following error.
I have tried deleting platforms and node modules, as well as running ng update and npm outdated.
npm install of external dependencies ok
ng run app:ionic-cordova-build --platform=ios
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.
Ionic Info:
Ionic:
Ionic CLI : 6.11.12 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.5.2
@angular-devkit/build-angular : 0.1100.4
@angular-devkit/schematics : 11.0.4
@angular/cli : 11.0.4
@ionic/angular-toolkit : 2.0.0
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0, ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 7 other plugins)
Utility:
cordova-res (update available: 0.15.2) : 0.15.1
native-run (update available: 1.3.0) : 0.3.0
System:
ios-sim : 8.0.2
NodeJS : v14.15.1 (/usr/local/bin/node)
npm : 6.14.8
OS : macOS Mojave
Xcode : Xcode 11.3.1 Build version 11C504