【发布时间】:2020-07-28 01:16:30
【问题描述】:
在将依赖项升级到 Angular 9(并执行必要的代码更改)后构建应用程序会引发错误:
编译 @angular/animations : es2015 as esm2015 编译 @angular/animations:es2015 作为 esm2015 编译 @angular/core: es2015 作为 esm2015 编译 @angular/core : es2015 作为 esm2015
编译 @angular/core:es2015 为 esm2015
错误:worker #5 出错:TypeError:无法读取属性“fileName”为空
然后继续抛出以下错误:
编译@angular/core : es2015 as esm2015 正在编译 @angular/compiler/testing : es2015 作为 esm2015 编译 @angular/core : es2015 as esm2015
错误: 试图用 ngcc 返回 node_modules/@angular/core/core.d.ts.__ivy_ngcc_bak up 文件,但它已经存在,所以不写,也不备份, node_modules/@angular/core/core.d.ts.
此错误可能是因为两个或多个入口点重叠,并且 ngcc 已被要求多次处理某些文件。
您应该检查此包中的其他入口点并设置一个配置以忽略您未使用的任何入口点。
编译 @angular/core : es2015 as esm2015 一个未处理的异常 发生:NGCC 失败。
【问题讨论】:
标签: angular typescript ivy angular-compiler