-
Notifications
You must be signed in to change notification settings - Fork 51
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
Cannot read property 'innerWidth' of undefined #5
Comments
@imjared |
Hey, I created this for use on a small project quite a while ago and haven't looked at it since. I'm not surprised it won't render server side given the way flickity works and carousels in general, it isn't possible to measure the dimensions of DOM elements server side. Honestly I'm also not sure the approach here is the best, if you're interested there is an open PR on the flickity repo itself metafizzy/flickity#381 which has a bit more detail about the issues integrating this with react. Have either of you tried initialising the component only on the client?. Having said all that I'm open to suggestions or patches here. |
@Abhi0725 - we ended up writing our own wrapper for flickity |
I have just found that setting the Flickity option: |
This awesome repo just kill my time. |
We're consistently getting this error in our isomorphic app. Not sure if this is something you've seen but flagging anyways for future weary Googlers. Will update if I find a solution.
The text was updated successfully, but these errors were encountered: