-
Notifications
You must be signed in to change notification settings - Fork 385
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
Fix for React/Node #167
Comments
Hello! Thanks for reporting this issue. Draggabilly was designed for the browser. See #101 (comment)
That said, I'm open to improving support for server-side rendering, so these errors don't get in the way of your development. Could you help me understand what you're looking for? |
I'm not sure what the fix is. But the error I get is: I've tried some node/react ports but they don't seem to work. Would be great if it was compatible. |
@jrock17 you can add the following in your entry point: if (typeof window === 'undefined') {
global.window = global
} This is more of a hack and it should work for your situation. |
Draggabilly v3 has been released that checks for |
Is there a way to use this (and packery) in a React/NodeJS environment?
When I try to require, I get a bunch of errors around 'window is not defined'.
Thanks!
The text was updated successfully, but these errors were encountered: