p-tabPanel' is not a known element

UI Components for Angular
Post Reply
nguyentai.fit
Posts: 1
Joined: 24 Apr 2018, 19:19

24 Apr 2018, 19:22

Hi,

Could you please help to fix error: "p-tabPanel' is not a known element"?

I had the same problem with other component.

I'm in angular 5 and primeng version 5.2.4

Thanks

zimou13
Posts: 1
Joined: 13 Apr 2018, 12:09

07 May 2018, 14:20

i am using PrimeNg for my angular2 project and i am trying to add panel in the page. I used below code for this which i took from primeng tutorial ( http://www.primefaces.org/primeng/#/panel ):-

my html file has below code :-

<p-panel>
<p-header>
Header content here
</p-header>
Body Content
</p-panel>
I have added imported required modules in my module from primeng :-

import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { MyComponent } from './my.component';
import { CommonModule } from '@angular/common';
import { SharedModule, PanelModule } from 'primeng/primeng';

ShowBox Kodi Lucky Patcher

@NgModule({
imports: [
CommonModule, SharedModule, PanelModule
],
declarations: [MyComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA ]
})
export class ThemeModule { }
This is throwing below error in console :-

EXCEPTION: Uncaught (in promise): Error: Template parse errors: 'p-header' is not a known element: 1. If 'p-header' is an Angular component, then verify that it is part of this module. 2. If 'p-header' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests