sidenav Error

Lyon-iCon pro premium priority asked 2 days ago

Compiled with problems: × ERROR src/app/layout/sidebar/sidebar.component.html:2:26 - error NG8003: No directive found with exportAs 'mdbSidenav'.

2 ~~~~

src/app/layout/sidebar/sidebar.component.ts:5:16 5 templateUrl: './sidebar.component.html', ~~~~~~~~~~ Error occurs in the template of component SidebarComponent.

Help me please to resolve this problem


This type of error usually occurs when you forget to add a component module (in this case MdbSidenavModule) to the list of imported modules.

Please make sure to include the MdbSidenavModule import in your app.module file (or in any other module tied to the component in which you use our sidenav). If you use standalone components, then just add this import in the component .ts file.


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 5.2.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags