Topic: sidenav Error
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
Arkadiusz Idzikowski
staff answered a day ago
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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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