【问题标题】:Error while generating Angular component after upgrading from Angular 13 to 14 in nx workspace using `nx migrate`使用“nx 迁移”在 nx 工作区中从 Angular 13 升级到 14 后生成 Angular 组件时出错
【发布时间】: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'
    }
  ]
}

【问题讨论】:

标签: angular monorepo nrwl-nx nrwl nx-workspace


【解决方案1】:

这太奇怪了,我从@angular/fire@7.2.1升级到最新(v7.4.1)后,我现在似乎可以创建组件了。

我想到了将@angular/firehere 升级。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-11-10
    • 1970-01-01
    • 2022-11-30
    • 2022-08-17
    • 2021-06-04
    • 2021-05-21
    • 2021-03-10
    相关资源
    最近更新 更多