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

Server side errors with Angular Universal #12

Closed
antonbarada opened this issue Sep 15, 2016 · 3 comments
Closed

Server side errors with Angular Universal #12

antonbarada opened this issue Sep 15, 2016 · 3 comments

Comments

@antonbarada
Copy link

}( window, function factory( Outlayer, getSize ) {
^
ReferenceError: window is not defined

@jelgblad
Copy link
Owner

Hi! Thank you for your issue.
I don't think this is a problem with this module. I don't think https://github.com/desandro/masonry is compatible with Angular Universal, since it references the window object.

Se this line in the original script: https://github.com/desandro/masonry/blob/master/dist/masonry.pkgd.js#L2290.

I haven't looked into Universal, so i don't really know how it works. But I think masonry have to be rendered on the client for now.

@jelgblad
Copy link
Owner

Maybe this is something for you angular/universal#311

@thecoconutstudio
Copy link

Did you every solve this issue, have the same problem

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

3 participants