📜  找不到管道异步 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:30.494000             🧑  作者: Mango

代码示例1
ERROR Error: Uncaught (in promise): Error: The pipe 'async' could not be found!Error: The pipe 'async' could not be found!


Answer
In my particular case this happened because I forgot to declare the component in app.module.ts. I copied in in to the project, imported into app-routing.module.ts, and registered it in a route.