md-list-item not a known element
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
Should render md-list and md-list-item
What is the current behavior?
Receives an error:
Uncaught Error: Template parse errors:
'md-list-item' is not a known element:
1. If 'md-list-item' is an Angular component, then verify that it is part of this module.
2. If 'md-list-item' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("<div class="tuxlab-login"> <div class=""> <md-list> [ERROR ->]<md-list-item> </md-list-item> </md-list> </div> </div> "): ng:///AppRoutingModule/Login.html@0:52
'md-list' is not a known element:
1. If 'md-list' is an Angular component, then verify that it is part of this module.
2. If 'md-list' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("<div class="tuxlab-login"> <div class=""> [ERROR ->]<md-list> <md-list-item> </md-list-item> </md-list> </div> </div> "): ng:///AppRoutingModule/Login.html@0:42
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Getting error "mat-nav-list is not a known element"
None of above worked for me. I had to include 'MatListModule' and it worked.
Read more >List - KivyMD 1.1.1 documentation
Lists are continuous, vertical indexes of text or images. ... The class MDList in combination with a BaseListItem like OneLineListItem will create a...
Read more >Directives - - - md-list-item - AngularJS Material
mdListItem API Documentation. A md-list-item element can be used to represent some information in a row.
Read more >Angular Error NG8001: is not a known element ... - YouTube
https://readdy.net/Notes/Details/1827Angular Error NG8001: 'mat-progress-spinner' is not a known element :Angular Error is an Angular ...
Read more >[Solved]-Angular2 + ng2-material import-angular.js
components/input/input"; import {MdList, MdListItem} from ". ... Material design component "is not a known element" in Angular2 · Integrating Material ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I fixed this by adding: import {MatListModule} from ‘@angular/material/list’; to my module
Please try to export your
angular/material
module, also reading the official guide will help you (see step 3)