我是靠谱客的博主 优美睫毛,这篇文章主要介绍如何处理Angular应用的错误消息: No pipe found with name async,现在分享给大家,希望可以做个参考。

错误消息:

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应用的错误消息:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(181)

评论列表共有 0 条评论

立即
投稿
返回
顶部