Angular Library Compilation: ERROR: Cannot read property 'then' of undefined
Angular Library Compilation: ERROR: Cannot read property 'then' of undefined
我有一个 angular 11 工作区,其中包含多个项目(库)。最近在一个库中添加了一个新组件,编译一切OK。在我的 public-api.ts 文件中公开新组件后,在编译我的库时(使用 ng build my-lib 命令)我得到了这个单行和无意义的错误:
ERROR: Cannot read property 'then' of undefined
有人遇到过这个问题吗?请帮忙!
public-api.ts 最新变化:
export * from './lib/ray-autocomplete/ray-autocomplete.module';
export * from './lib/ray-autocomplete/ray-autocomplete.component';
这是我从另一个组件复制新组件时的错误;我忘了在 @Component 声明处重命名文件:
@Component({
selector: 'ray-autocomplete',
templateUrl: './ray-autocomplete.component.html',
styleUrls: ['./ray-autocomplete.component.css'],
但是错误误导性很大。
我有一个 angular 11 工作区,其中包含多个项目(库)。最近在一个库中添加了一个新组件,编译一切OK。在我的 public-api.ts 文件中公开新组件后,在编译我的库时(使用 ng build my-lib 命令)我得到了这个单行和无意义的错误:
ERROR: Cannot read property 'then' of undefined
有人遇到过这个问题吗?请帮忙!
public-api.ts 最新变化:
export * from './lib/ray-autocomplete/ray-autocomplete.module';
export * from './lib/ray-autocomplete/ray-autocomplete.component';
这是我从另一个组件复制新组件时的错误;我忘了在 @Component 声明处重命名文件:
@Component({
selector: 'ray-autocomplete',
templateUrl: './ray-autocomplete.component.html',
styleUrls: ['./ray-autocomplete.component.css'],
但是错误误导性很大。