rajaramtt / ng7-dynamic-breadcrumb

Angular 10 Dynamic Breadcrumbs
MIT License
42 stars 31 forks source link

Can't Run with Angular 12.2.5 and Ivy #37

Closed mrvini closed 2 years ago

mrvini commented 3 years ago

I am trying to use your module with Angular 12.2.5 and observing the following behavior

setup

 "dependencies": {
    "@angular/animations": "~12.2.5",
    "@angular/cdk": "^12.2.5",
    "@angular/common": "~12.2.5",
    "@angular/compiler": "~12.2.5",
    "@angular/core": "~12.2.5",
    "@angular/flex-layout": "^12.0.0-beta.34",
    "@angular/forms": "~12.2.5",
    "@angular/material": "^12.2.5",

When I try to run application with ng serve I get the following errors


Error: node_modules/ng-dynamic-breadcrumb/lib/ng-dynamic-breadcrumb.component.d.ts:6:22 - error NG6002: Appears in the NgModule.imports of AppLayoutModule, but could not be resolved to an NgModule class.

This likely means that the library (ng-dynamic-breadcrumb) which declares NgDynamicBreadcrumbComponent 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.

6 export declare class NgDynamicBreadcrumbComponent implements OnInit {
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

please advise