我知道有很多这样的问题,但我的,我想我还没有看到,当建立我的Android平台,这个错误附加。
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.
所以我怎么才能弄清楚呢???拜托
4条答案
按热度按时间fnatzsnv1#
在angular.json文件中,如果你有一个空的脚本标签,就像这样,只要删除它!
m0rkklqb2#
当我从
@angular-devkit/build-angular
版本~0.900.0-rc.3
移到^0.1100.2
版本时,我遇到了同样的错误。在package.json
中设置以下配置解决了我的问题:hs1rzwqc3#
I think this error might be happening due to new syntax for script tag in
angular.json
. Please find and update this tag (might be more than one) and update it accordingly to the new syntax:b1uwtaje4#
For IONIC you can follow these steps :
node_modules
andpackage-lock.json
.npm cache clean --force
npm install
.npm i -g npm-check-updates
ncu -u
ionic cordova platform rm android
.ionic cordova platform add android
.npm install
.