Angular 中的 imports/exports/declarations 组件有问题

Problem with imports/exports/declarations component in Angular

我创建了一个组件,正如您在代码示例中看到的那样,我导入它、导出它甚至声明它,但它不带我。你能告诉我可能是什么问题吗?

错误: 出现在 SalesModule 的 NgModule.imports 中,但无法解析为 NgModule class。 它是否缺少 @NgModule 注释? 9 导出 class PaymentStatusComponent 实现 OnInit {

sales.module.ts:

@NgModule({
    exports: [PaymentStatusComponent],
    imports: [PaymentStatusComponent],
    declarations: [PaymentStatusComponent]
})
export class SalesModule {}

谢天谢地,这是一个简单的修复。

imports 数组中删除 PaymentStatusComponent

为什么? 因为它是一个组件,而 imports 数组只采用模块。