any component is not a known element.
New DiscussionHello,
I’m adding infragistics angular ui to an existing angular application. I get this error: ‘igx-drop-down’ is not a known element:
I followed the steps mentioned here: https://es.infragistics.com/community/blogs/b/infragistics/posts/step-by-step-with-images-to-add-ignite-ui-for-angular-in-an-existing-angular-project
In package.json:
“igniteui-angular”: “^9.0.9”,
“igniteui-angular-charts”: “^9.0.1”,
“igniteui-angular-core”: “^9.0.1”,
“igniteui-angular-maps”: “^9.0.1”,
app.module.ts:
import {
IgxAutocompleteModule,
IgxButtonModule,
IgxDropDownModule,
IgxInputGroupModule,
IgxDatePickerModule,
IgxDialogModule,
IgxIconModule,
IgxSelectModule,
IgxTimePickerModule
} from ‘igniteui-angular’;
In Imports:
IgxAutocompleteModule,
IgxButtonModule,
IgxDatePickerModule,
IgxDropDownModule,
IgxInputGroupModule,
IgxDialogModule,
IgxIconModule,
IgxSelectModule,
IgxTimePickerModule,
In component:
<igx-drop-down #cinemaPanelmaxHeight=”350px”>
<igx-drop-down-item-group *ngFor=”let town of towns | groupContains: cinema.value” [label]=”town.name”>
<igx-drop-down-item *ngFor=”let cinema of town.cinemas | contains: cinema.value” [value]=”cinema”>
{{cinema}}
</igx-drop-down-item>
</igx-drop-down-item-group>
</igx-drop-down>
Error:
<igx-drop-down #cinemaPanel maxHeight=”350px”> [ERROR ->]<igx-drop-down-item-group *ngFor=”let town of towns | groupContains: cinema.value” [label]=”town.name”) ‘igx-drop-down’ is not a known element: 1. If ‘igx-drop-down’ is an Angular component, then verify that it is part of this module. 2. If ‘igx-drop-down’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message. (” </mat-form-field>
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
3 Created On
Apr 13, 2020 Last Post
5 years, 10 months ago