-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Description
Getting following issue when trying to import list:
ERROR Error: Uncaught (in promise): Error: Template parse errors:
'mat-list-item' is not a known element:
- If 'mat-list-item' is an Angular component, then verify that it is part of this module.
- If 'mat-list-item' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
[ERROR ->]<mat-list-item *ngFor="let video of videos">
{{video.title}}
I have also tried to directly import from @angular/material/list but it is giving the same error.
What are the steps to reproduce?
import {MatButtonModule, MatCheckboxModule, MatToolbarModule, MatListModule} from '@angular/material';
@NgModule({
declarations: [
AppComponent
],
imports: [
MatToolbarModule,
MatButtonModule,
MatCheckboxModule,
MatListModule,
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule
],
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
7.2.2
Metadata
Metadata
Assignees
Labels
No labels