已经更新了我的节点和角度。在进行 ng构建时出现错误: 架构验证失败,并出现以下错误:
数据路径“”不应具有其他属性(脚本)。
通过以下方式生成项目:
ng n my-proj **-create-application=false**
angular.json:
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"my-proj-lib": {
"projectType": "library",
"root": "projects/my-proj-lib",
"sourceRoot": "projects/my-proj-lib/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/my-proj-lib/tsconfig.lib.json",
"scripts": [
"other-libs/jqBootstrapValidation.js"
],
"project": "projects/my-proj-lib/ng-package.json"
}
},
"test": {
...
},
"lint": {
...
}
}
}},
"defaultProject": "my-proj-lib"
}