Just a heads-up for anyone who may be trying to use this in a SSR-framework that it may fail.
I was trying to use this component to integrate Flickity in my Gatsby build. While it works when I do a local develop instance, it fails on a local build as well as on my CI.
I'm closing this as I think the underlying cause is with Flickity itself that uses a window reference. Flickity, as of this writing, cannot be isomorphically deployed.
Just a heads-up for anyone who may be trying to use this in a SSR-framework that it may fail.
I was trying to use this component to integrate Flickity in my Gatsby build. While it works when I do a local develop instance, it fails on a local build as well as on my CI.
Gatsby returns:
In my case, there's an issue thread over at Gatsby that indicates that an import's SSR-compatibility could likely be the issue: https://github.com/gatsbyjs/gatsby/issues/11464