下面是我的组件声明:
@Component({
selector: 'app-update-enterprise',templateUrl: './update-enterprise.component.html',providers: [DatePipe]
})
export class UpdateEnterpriseComponent extends BaseComponent implements OnInit,OnDestroy,AfterViewInit,DeactivationGuarded {
当我使用命令:npm进行构建时,运行build:prod
出现错误:ERROR in (1,1): : Directive UpdateEnterpriseComponent,Cannot invoke an expression whose type lacks a call signature. Type 'Boolean' has no compatible call signatures.
您看到了吗?它说“ Directive UpdateEnterpriseComponent”,我不知道为什么,所以请帮助,谢谢!