Angular can't find a pipe with this name.
The pipe referenced in the template has not been named or declared properly.
To use the pipe:
- Ensure the name used in a template matches the name defined in the pipe decorator.
- Add the pipe to your component's
imports
array or, if the pipe setsstandalone: false
, add theNgModule
to which the pipe belongs.
Debugging the error
Use the pipe name to trace where the pipe is declared and used.
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 theNgModule
. - If the pipe is standalone or is declared in another
NgModule
, add it to theimports
field of the standalone component or the currentNgModule
.
If you recently added an import or declaration, you may need to restart your server to see these changes.