Topic: No component factory found for ModalBackdropComponent
When trying to launch a modal I'm getting the following error:
I have included MDBBootstrapModulesPro on my modules list, is there anything I need to do?
No component factory found for ModalBackdropComponent. Did you add it to @NgModule.entryComponents? at noComponentFactoryError (modules.js?hash=aeaf7612ecb2d05aa7843ffeec7cc905a6cc0cf4:16754) at CodegenComponentFactoryResolver.resolveComponentFactory (modules.js?hash=aeaf7612ecb2d05aa7843ffeec7cc905a6cc0cf4:16789) at ComponentLoader.attach (modules.js?hash=aeaf7612ecb2d05aa7843ffeec7cc905a6cc0cf4:95788) at ModalDirective.showBackdrop (modules.js?hash=aeaf7612ecb2d05aa7843ffeec7cc905a6cc0cf4:97477) at ModalDirective.show (modules.js?hash=aeaf7612ecb2d05aa7843ffeec7cc905a6cc0cf4:97368) at CreateTeamModalComponent.show (create-team-modal.component.ts:25) at Object.eval [as handleEvent] (my-teams.page.html:11) at handleEvent (modules.js?hash=aeaf7612ecb2d05aa7843ffeec7cc905a6cc0cf4:23549) at callWithDebugContext (modules.js?hash=aeaf7612ecb2d05aa7843ffeec7cc905a6cc0cf4:24642) at Object.debugHandleEvent [as handleEvent] (modules.js?hash=aeaf7612ecb2d05aa7843ffeec7cc905a6cc0cf4:24345)
Arkadiusz Idzikowski staff answered 6 years ago
Dear pulpo,
I need code you are using to try to recreate this problem.
Best,
Arek
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: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
pulpo pro commented 6 years ago
I've managed to pass this error, but now the backdrop appears over the modal, also, the modal opens in the beginning of the page, so if the user has scrolled he will not see the modal, it's fixed on top. https://imgur.com/kKS07anArkadiusz Idzikowski staff commented 6 years ago
Dear pulpo, I tried to reproduce this problem but without success. Could you paste here the code associated with our component which you are using? Best, Arek