2021-01-27 14:23:36 -08:00
@name Pipe Not Found
@category runtime
@videoUrl https://www.youtube.com/embed/maI2u6Sxk9M
2022-05-21 23:03:39 +01:00
@videoCaption Note: The video predates standalone pipes, please refer to additional instructions below if you use standalone pipes.
2021-01-27 14:23:36 -08:00
@shortDescription Pipe not found!
@description
2022-03-10 08:48:09 -08:00
Angular can't find a pipe with this name.
2022-05-21 23:03:39 +01:00
2023-08-09 23:34:27 -07:00
The [pipe ](guide/pipes-overview ) referenced in the template has not been named or declared properly.
2022-05-21 23:03:39 +01:00
2023-08-09 23:34:27 -07:00
To use the pipe:
- Ensure the name used in a template matches the name defined in the pipe decorator.
- Either mark it as standalone by adding the `standalone: true` flag to the pipe's decorator or declare it as a part of an `NgModule` by adding to that module's declarations array.
- Import it in the standalone components and/or the `NgModules` where it is needed.
2021-01-27 14:23:36 -08:00
@debugging
2022-05-21 23:03:39 +01:00
Use the pipe name to trace where the pipe is declared and used.
2021-01-27 14:23:36 -08:00
2023-08-09 23:34:27 -07:00
To resolve this error:
- If the pipe is local to the `NgModule` , give it a unique name in the pipe's decorator and declared it in the `NgModule` .
- If the pipe is standalone or is declared in another `NgModule` , add it to the `imports` field of the standalone component or the current `NgModule` .
2021-01-27 14:23:36 -08:00
If you recently added an import or declaration, you may need to restart your server to see these changes.
2022-03-10 08:48:09 -08:00
<!-- links -->
<!-- external links -->
<!-- end links -->
2022-05-21 23:03:39 +01:00
@reviewed 2022-05-22