angular build 报错: path ".builders['app-shell']" should have required property 'class'.

详细错误信息如:

Schema validation failed with the following errors:

  Data path ".builders['app-shell']" should have required property 'class'.

Error: Schema validation failed with the following errors:

  Data path ".builders['app-shell']" should have required property 'class'.

    at MergeMapSubscriber._registry.compile.pipe.operators_1.concatMap.validatorResult [as project] (E:\project\GuangSheng\fileManage\newcode\filesmanagefrontend\node_modules\@angular-devkit\core\src\workspace\workspace.js:215:42)

先运行 ng version,查看当前angular版本很相关环境信息,如下:

image.png

根据ng信息,查看【package.json】,定位【"@angular-devkit/build-angular": "~0.13.0",】相关内容,将此处的版本对应上述ng 中显示的版本, 如^0.803.29 , 或者 ^0.10.0

然后重新  npm install  或者  yanr install,之后重新进行打包。

qrcode