-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No component factory found for ModalBackdropComponent #975
Comments
|
Know issue since rc.5, working on it |
On 1.1.5 now, this is still a problem. |
Show your app module definition? |
|
Import modal module, not directives |
Update: remove export of directives and components |
I've done all of the above. The rest of the app still works, but still getting |
ModalBackdropComponent should be in declarations |
That also doesn't seem to resolve it. When I have time I will put together a reproduction scenario and upload it. |
Can you try to inject whole ng2 bootstrap module? |
Imported Ng2BootstrapModule, same behavior remains. Note that this is not blocking, I'm just hoping to get it resolved at some point. I am still using the |
After deleting my dist folder and re-running webpack, I now see a new error... |
Removed ModalBackdropComponent from AppModule declarations, and I see a backdrop now! |
ModalModule works as well. Apparently I had stale compiled typescript. |
Awesome :) |
Thanks for the help! |
Hi, I got same issue. I already included modal component in entryComponents of NgModule but there still showing this error message. Any idea, please? |
Guys, check what the actual ModalModule you have in AppComponent, from 'angular2-modal' or 'ngx-bootstrap'. The last one should be imported |
I came across the same problem using an already structured app. I needed to add something like this into the core modules:
|
add ModalBackdropComponent to entryComponents: in module @NgModule({ |
Make sure the NgbModalModule is imported in the same module where the ModalComponent is declared and placed in the entryComponents property. Otherwise I think it winds up looking for the component in the root scope. @NgModule({
declarations: [SomeModalComponent],
imports: [
NgbModalModule
],
entryComponents: [SomeComponent]
}) |
Import NgbModule in app.module.ts
|
Getting this error when trying to pop up a new modal window. My setup closely follows the demo, but I am using systemjs for module loading currently. ng2-bootstrap version 1.1.3. Adding
[config]="{backdrop: false}"
prevents the error and allows the modal to launch, but does so with no backdrop.The text was updated successfully, but these errors were encountered: