Fault with Angular treeview component


Topic: Fault with Angular treeview component

Xenia asked a year 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 a year 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 commented a year 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
  • User: 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
Tags