概述
错误消息:
Failed to compile.
src/app/ngrxdemo/container/component/counter/counter.component.html:8:27 - error NG8004: No pipe found with name ‘async’.
8 当前数:{{ counter$ | async }}
~~~~~
src/app/ngrxdemo/container/component/counter/counter.component.ts:9:16
9 templateUrl: ‘./counter.component.html’,
~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component CounterComponent.
虽然CounterComponent作为child Component,其parent Component里已经申明了包含async pipe的Common Module,但是仍然需要在child Component里也import Common Module:
import之后问题解决:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
最后
以上就是优美睫毛为你收集整理的如何处理Angular应用的错误消息: No pipe found with name async的全部内容,希望文章能够帮你解决如何处理Angular应用的错误消息: No pipe found with name async所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复