'p-orderList' is not a known element

UI Components for Angular
Post Reply
mhmdwishah
Posts: 1
Joined: 25 Nov 2021, 18:17

25 Nov 2021, 18:33

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)

jamesskurray
Posts: 10
Joined: 26 Jul 2017, 08:17

30 Nov 2021, 00:47

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,
]
....

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests