【发布时间】:2022-06-12 01:03:48
【问题描述】:
需要帮助...
不知道为什么我在使用 nx migrate 将 angular 13 升级到 14 后开始出现这些错误
我无法生成角度分量。
使用nx g c component-name
InvalidInputOptions [Error]: Schematic input does not validate against the Schema: {"style":"scss","skipTests":true,"skipImport":true,"path":"libs/fisendo-web/staycation/ui/staycation-components/src/lib/components/property-content","project":"fisendo-web-staycation-ui-staycation-components","name":"component-name","displayBlock":false,"inlineStyle":false,"inlineTemplate":false,"changeDetection":"Default","flat":false,"skipSelector":false,"type":"component","export":false}
Errors:
Data path "" must NOT have additional properties(standalone).
at MapSubscriber.project (***\***\node_modules\@angular-devkit\schematics\tools\schema-option-transform.js:30:27)
at MapSubscriber._next (***\***\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\operators\map.js:49:35)
...
...
at ThrowIfEmptySubscriber._next (***\***\node_modules\@angular-devkit\schematics\node_modules\rxjs\internal\operators\throwIfEmpty.js:44:26) {
errors: [
{
instancePath: '',
schemaPath: '#/additionalProperties',
keyword: 'additionalProperties',
params: [Object],
message: 'must NOT have additional properties'
}
]
}
【问题讨论】:
-
我知道这听起来很奇怪,但您是否也尝试过
ng g component或ng generate component? There have been similar issues like this in the past -
同样的错误出现在
ng generate component和ng generate pipe
标签: angular monorepo nrwl-nx nrwl nx-workspace