Topic: No component factory found for ModalBackdropComponent

pulpo pro asked 6 years ago


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)

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/kKS07an

Arkadiusz 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

Arkadiusz Idzikowski staff answered 6 years ago


Dear pulpo, I need code you are using to try to recreate this problem. Best, Arek

pulpo pro commented 6 years ago

It's big, I'll try to extract only a part to simulate


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

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags