角度8,我生成了一个组件,但是系统以某种方式将其理解为指令?

下面是我的组件声明:

@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”,我不知道为什么,所以请帮助,谢谢!

fkesn 回答:角度8,我生成了一个组件,但是系统以某种方式将其理解为指令?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2811313.html

大家都在问