Topic: Fault with Angular treeview component

Xenia free asked 3 years ago


Expected behavior By the documentation, I need to add in my root module
import { MdbTreeComponent } from 'ng-uikit-pro-standard';

What I did successfully.

Actual behavior But when I added the treeview componnet in my Angular project I have a problem with loading all modules in my project. And I have the next message Resources (screenshots, code snippets etc.)

ERROR in node_modules/ng-uikit-pro-standard/lib/pro/tree-view/tree-view.component.d.ts:3:22 - error NG6002: Appears in the NgModule.imports of MdbModule, but could not be resolved to an NgModule class.

This likely means that the library (ng-uikit-pro-standard) which declares MdbTreeComponent 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.

What can I do with it?


Arkadiusz Idzikowski staff commented 3 years ago

This import should not be needed, we will check that and update documentation. Please try to remove it and in case of any further problems reinstall the dependencies (remove node_modules and package-lock.json and run npm install again).


Xenia free commented 3 years ago

Thank you. It is really helped me.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 10.1.1
  • Device: Asus
  • Browser: Chrome
  • OS: Windows 7
  • Provided sample code: No
  • Provided link: No