架构验证失败并出现以下错误

Dav*_*aka 6 ionic-framework

我知道有很多这样的问题,但我认为我还没有看到这个问题。在构建我的 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.
Run Code Online (Sandbox Code Playgroud)

那么我怎样才能弄清楚呢?请

小智 7

在 angular.json 文件上,如果您有一个空脚本标签,就像这样,只需将其删除!

 "build": {
      "options": {
       ....,
       "scripts": []      <-- Remove this line
Run Code Online (Sandbox Code Playgroud)


小智 0

当我从@angular-devkit/build-angular一个版本移动~0.900.0-rc.3到另一个版本时^0.1100.2,我遇到了同样的错误。设置package.json以下配置解决了我的问题:

 "@angular-devkit/build-angular": "~0.900.0-rc.3",
Run Code Online (Sandbox Code Playgroud)