5 lines
2.6 KiB
JSON
Raw Permalink Normal View History

{
"id": "errors/NG8001",
"title": "NG8001: Unknown HTML element or component",
"contents": "<h1 id=\"ng8001-unknown-html-element-or-component\">NG8001: Unknown HTML element or component<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"errors/NG8001#ng8001-unknown-html-element-or-component\"><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/NG8001.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\n\n<div class=\"content\">\n <h2 id=\"description\">Description<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"errors/NG8001#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>One or more elements cannot be resolved during compilation because the element is not defined by the HTML spec, or there is no component or directive with such element selector.</p>\n<div class=\"alert is-helpful\">\n<p>This is the compiler equivalent of a common runtime error <code>NG0304: '${tagName}' is not a known element: …</code>.</p>\n</div>\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/NG8001#debugging-the-error\"><i class=\"material-icons\">link</i></a></h2>\n <p>Use the element name in the error to find the file(s) where the element is being used.</p>\n<p>Check that the name and selector are correct. If the component is from a different module or import, check that the component is exported from its origin module and imported into the correct <code>*.modules.ts</code> file, and declared in the imports list.</p>\n<p>When using custom elements or web components, ensure that you add <a href=\"api/core/CUSTOM_ELEMENTS_SCHEMA\"><code>CUSTOM_ELEMENTS_SCHEMA</code></a> to the app module.</p>\n<p>If this does not resolve the error, check the imported libraries for any recent changes to the exports and properties you are using, and restart your server.</p>\n\n</div>\n\n<!-- links to this doc:\n - errors\n-->\n<!-- links from this doc:\n - api/core/CUSTOM_ELEMENTS_SCHEMA\n - errors/NG8001#debugging-the-error\n - errors/NG8001#description\n - errors/NG8001#ng8001-unknown-html-element-or-component\n - https://github.com/angular/angular/edit/master/aio/content/errors/NG8001.md?message=docs(...)%3A%20describe%20your%20change...\n-->"
}