错误消息:

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应用的错误消息:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复