i imported in app-module and npm install @angular/cdk --save
but i got this error
'p-orderList' is not a known element:
1. If 'p-orderList' is an Angular component, then verify that it is part of this module.
2. If 'p-orderList' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.ngtsc(-998001)
'p-orderList' is not a known element
-
- Posts: 10
- Joined: 26 Jul 2017, 08:17
Sounds like a unit testing failure:
in your spec file for the component that is failing add:
import { OrderListModule } from 'primeng/orderlist';
TestBed.configureTestingModule({
imports: [
OrderListModule,
]
....
in your spec file for the component that is failing add:
import { OrderListModule } from 'primeng/orderlist';
TestBed.configureTestingModule({
imports: [
OrderListModule,
]
....
-
- Information
-
Who is online
Users browsing this forum: No registered users and 21 guests