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

'window' is not defined in SSR #112

Closed
wilfredmifsud opened this issue Oct 17, 2019 · 0 comments
Closed

'window' is not defined in SSR #112

wilfredmifsud opened this issue Oct 17, 2019 · 0 comments

Comments

@wilfredmifsud
Copy link

wilfredmifsud commented Oct 17, 2019

Hi

While testing your plugin (through ngx-ellipses), I am encountering an issue where a window is not defined error is showing while rendering the website in SSR.

From what I can see you have no checks if the window exists in the current context.

It currently shows the text "undefined" instead of the actual text.

image

I would really like it to work somehow in SSR and non-SSR version of the website.

Any help would be great

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

1 participant