question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

md-list-item not a known element

See original GitHub issue

Bug, 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:closed
  • Created 6 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
leeroyacommented, May 12, 2018

I fixed this by adding: import {MatListModule} from ‘@angular/material/list’; to my module

2reactions
m98commented, Jul 8, 2017

Please try to export your angular/material module, also reading the official guide will help you (see step 3)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found