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

listener is not a function (ssr) #42

Closed
testica opened this issue May 4, 2018 · 4 comments
Closed

listener is not a function (ssr) #42

testica opened this issue May 4, 2018 · 4 comments

Comments

@testica
Copy link

testica commented May 4, 2018

I'm facing a problem with Server-side rendering

TypeError: this.listener1 is not a function
    at NguCarouselComponent.module.exports.NguCarouselComponent.ngOnDestroy (/var/task/dist/server.js:175618:14)
    at callProviderLifecycles (/var/task/dist/server.js:13032:18)
    at callElementProvidersLifecycles (/var/task/dist/server.js:12997:13)
    at callLifecycleHooksChildrenFirst (/var/task/dist/server.js:12981:17)
    at destroyView (/var/task/dist/server.js:14325:5)
    at callViewAction (/var/task/dist/server.js:14476:13)
    at execEmbeddedViewsAction (/var/task/dist/server.js:14414:17)
    at destroyView (/var/task/dist/server.js:14323:5)
    at callViewAction (/var/task/dist/server.js:14476:13)
    at execComponentViewsAction (/var/task/dist/server.js:14388:13)
@sheikalthaf
Copy link
Collaborator

Hi @testica ,
Thanks for reporting. I will try to solve it

@kenho1703
Copy link

Hello
Please update, Change from
this.listener1();
this.listener2();
To
if (this.listener1) {
this.listener1();
}
if (this.listener2) {
this.listener2()
}

@arun-maddheshia
Copy link

@sheikalthaf i am also facing this issue :( with SSR

@sheikalthaf
Copy link
Collaborator

@testica @arun-maddheshia @kenho1703 This issue is fixed. Please check release.

Thanks

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

No branches or pull requests

4 participants