使用 ng-packagr 和 material 2.0.0-beta.12 构建错误
Build Error with ng-packagr and material 2.0.0-beta.12
当我尝试 运行 ng-packagr with material: 2.0.0-beta.12 作为依赖项时,我收到构建错误。它正在寻找 node_modules/@angular/packages/material
node_modules 中不存在的 packages 文件夹,所以我得到 ENOENT: no such file or directory open
。
我已将此提交给 material 和 ng-packagr 问题跟踪器,但这很可能是我在本地做的事情。我在这里 material-issue-project 开始了一个新项目,它所做的唯一一件事就是从 material 库中导入一个模块 (MatIconModule)。
还有其他人遇到过这个问题吗?在 material-beta.12 中使用 ng-packagr 的人可能不会太多,但我们将不胜感激任何想法或提示。
我不太确定如何解释它,因为我不明白发生了什么,但这是 material issue and the ng-packagr issue。我确定需要澄清,所以请告诉我。我还附上了我收到的错误的屏幕截图。
material beta.12 中的源映射似乎有问题。查看 this comment 以将 material 设置为当前解决方法的外部对等依赖项。
当我尝试 运行 ng-packagr with material: 2.0.0-beta.12 作为依赖项时,我收到构建错误。它正在寻找 node_modules/@angular/packages/material
node_modules 中不存在的 packages 文件夹,所以我得到 ENOENT: no such file or directory open
。
我已将此提交给 material 和 ng-packagr 问题跟踪器,但这很可能是我在本地做的事情。我在这里 material-issue-project 开始了一个新项目,它所做的唯一一件事就是从 material 库中导入一个模块 (MatIconModule)。
还有其他人遇到过这个问题吗?在 material-beta.12 中使用 ng-packagr 的人可能不会太多,但我们将不胜感激任何想法或提示。
我不太确定如何解释它,因为我不明白发生了什么,但这是 material issue and the ng-packagr issue。我确定需要澄清,所以请告诉我。我还附上了我收到的错误的屏幕截图。
material beta.12 中的源映射似乎有问题。查看 this comment 以将 material 设置为当前解决方法的外部对等依赖项。