小编She*_*een的帖子

Angular 库编译:错误:无法读取未定义的属性“then”

我有一个 Angular 11 工作区,其中包含多个项目(库)。最近我在一个库中添加了一个新组件,编译一切正常。在我的 public-api.ts 文件中公开新组件后,在编译我的库时(使用 ng build my-lib 命令),我收到了这一行无意义的错误:

错误:无法读取未定义的属性“then”

有人遇到过这个问题吗?请帮忙!

public-api.ts 最新更改:

export * from './lib/ray-autocomplete/ray-autocomplete.module';
export * from './lib/ray-autocomplete/ray-autocomplete.component';
Run Code Online (Sandbox Code Playgroud)

compilation angular angular-library

2
推荐指数
1
解决办法
2199
查看次数

标签 统计

angular ×1

angular-library ×1

compilation ×1