primeng/panel gives Ivy error on Angular 9.0.2 and PrimeNG 9.0.0

Created on 7 Mar 2020  路  2Comments  路  Source: primefaces/primeng

primeng/panel gives Ivy error on Angular 9.0.2 and PrimeNG 9.0.0

import { PanelModule } from 'primeng/panel';


@NgModule({
  declarations: [
    AppComponent,
    RegionsComponent,
    HomeComponent,
    CountryDetailsComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    HttpClientModule,
    AppRoutingModule,
    NgbModule,
    DropdownModule,
    PanelModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Error message:-

95% emitting CopyPlugin    
    ERROR in node_modules/primeng/panel/panel.d.ts:30:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

    This likely means that the library (primeng/panel) which declares PanelModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

    30 export declare class PanelModule {
                            ~~~~~~~~~~~


Date: 2020-03-07T16:09:01.611Z - Hash: 7447ed766e873f7e3673

Most helpful comment

remove node_models and npm install again - that fixed it for me

All 2 comments

I'm unable to replicate, the panel worked fine when ivy is on. If the issue persists, please create a new issue ticket and refer to a sample project that replicates the issue e.g. stackblitz or a github repo.

remove node_models and npm install again - that fixed it for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jisqaqov picture jisqaqov  路  3Comments

Helayxa picture Helayxa  路  3Comments

garethlewis picture garethlewis  路  3Comments

KannanMuruganmony picture KannanMuruganmony  路  3Comments

miresk picture miresk  路  3Comments