Skip to content
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

NgbTooltipWindow error when using server-side rendering #2139

Closed
mathieubruguier opened this issue Jan 31, 2018 · 3 comments
Closed

NgbTooltipWindow error when using server-side rendering #2139

mathieubruguier opened this issue Jan 31, 2018 · 3 comments

Comments

@mathieubruguier
Copy link

mathieubruguier commented Jan 31, 2018

Bug description:

I get the following error when using tooltips with server-side rendering:
Error: No component factory found for NgbTooltipWindow. Did you add it to @NgModule.entryComponents?

I tried adding NgbTooltipWindow to both server-side and client-side modules but the error remains.

Version of Angular and ng-bootstrap:

Angular: 5.2.2
ng-bootstrap: 1.0.0

It would make sense to disable tooltips for the server-side, but I'm not sure how to do that, and I figured I might as well report the error just in case.
I'm following this guide for server-side rendering.
Thank you for your help.

@abyrne85
Copy link

abyrne85 commented Feb 1, 2018

I'm having the same issue

@Stajor
Copy link

Stajor commented Feb 26, 2018

Same issue for me. Any updates?

@pkozlowski-opensource
Copy link
Member

This, most likely, happens because of this line:

this._windowFactory = componentFactoryResolver.resolveComponentFactory<T>(type);

It seems like trying to resolve a component in a constructor breaks ssr. Additional info in #2180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants