5 lines
2.7 KiB
JSON
5 lines
2.7 KiB
JSON
{
|
|
"id": "errors/NG0302",
|
|
"title": "NG0302: Pipe not found!",
|
|
"contents": "<h1 id=\"ng0302-pipe-not-found\">NG0302: Pipe not found!<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"errors/NG0302#ng0302-pipe-not-found\"><i class=\"material-icons\">link</i></a></h1>\n<div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/aio/content/errors/NG0302.md?message=docs(...)%3A%20describe%20your%20change...\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n</div>\n\n\n<div class=\"error-video-container\">\n <iframe src=\"https://www.youtube.com/embed/maI2u6Sxk9M\" frameborder=\"0\" allow=\"accelerometer; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>\n</div>\n\n\n\n<div class=\"content\">\n <h2 id=\"description\">Description<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"errors/NG0302#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>Angular can't find a pipe with this name.\nThe pipe referenced in the template has not been named or declared properly.\nA <a href=\"guide/pipes\">pipe</a> must be either declared or imported in the <code><a href=\"api/core/NgModule\" class=\"code-anchor\">NgModule</a></code> where it is used, and the name used in a template must match the name defined in the pipe decorator.</p>\n\n</div>\n<br>\n<div class=\"debugging\">\n <h2 id=\"debugging-the-error\">Debugging the error<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"errors/NG0302#debugging-the-error\"><i class=\"material-icons\">link</i></a></h2>\n <p>Use the pipe name to trace the templates or modules where this pipe is declared and used.</p>\n<p>To resolve this error, ensure that:</p>\n<ul>\n<li>A local custom pipe is uniquely named in the pipe's decorator, and declared in the <code><a href=\"api/core/NgModule\" class=\"code-anchor\">NgModule</a></code>, or</li>\n<li>A pipe from another <code><a href=\"api/core/NgModule\" class=\"code-anchor\">NgModule</a></code> is added to the imports of the <code><a href=\"api/core/NgModule\" class=\"code-anchor\">NgModule</a></code> where it is used.</li>\n</ul>\n<p>If you recently added an import or declaration, you may need to restart your server to see these changes.</p>\n\n</div>\n\n<!-- links to this doc:\n - errors\n-->\n<!-- links from this doc:\n - api/core/NgModule\n - errors/NG0302#debugging-the-error\n - errors/NG0302#description\n - errors/NG0302#ng0302-pipe-not-found\n - guide/pipes\n - https://github.com/angular/angular/edit/master/aio/content/errors/NG0302.md?message=docs(...)%3A%20describe%20your%20change...\n-->"
|
|
} |