首页 > 其他分享> > ‘HttpClientModule‘ declared by the module ‘AppModule‘. Please add a @Pipe/@Directive/@Component anno
‘HttpClientModule‘ declared by the module ‘AppModule‘. Please add a @Pipe/@Directive/@Component anno
作者:互联网
'HttpClientModule' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annot.
解决办法:如果你出现了这样的错,那你注意了,HttpClientModule是引入的模块,不是自己创建的组件,所以要放在import的里面而不是declarations,
同理如果你的其他组件报错那说明你把组件也放错地方了
标签:declared,AppModule,Directive,Please,module,anno,组件,HttpClientModule 来源: https://blog.csdn.net/m0_46270930/article/details/119409059