【问题标题】:Configuration doesn't match the required schema: Data path "/lib" must NOT have additional properties (umdModuleIds)配置与所需架构不匹配:数据路径“/lib”不得具有其他属性 (umdModuleIds)
【发布时间】:2021-12-10 20:20:39
【问题描述】:

当我运行ng build 时,我明白了,

❯ ng build
Building Angular Package
Configuration doesn't match the required schema.
Data path "/lib" must NOT have additional properties (umdModuleIds).

这个问题的根源是什么,我该如何解决

【问题讨论】:

  • 嗨!你能解决这个问题吗?我有同样的问题:/

标签: angular angularbuild


【解决方案1】:

问题在于version 13.0.0 of ng-packager a BREAKING CHANGE was introduced

我们不再生成 UMD 捆绑包。以下用于 UMD 包生成的选项也已被删除;

  • umdModuleIds
  • amdId
  • umdId

According to the comments in this thread these options have not been in use since version 2. 但现在它们会产生错误。

【讨论】:

    猜你喜欢
    • 2020-12-10
    • 2021-03-30
    • 2013-09-24
    • 2015-11-14
    • 2019-06-24
    • 1970-01-01
    • 2019-06-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多