Skip to content

React (isomorphic server side) integration - ReferenceError: window is not defined #353

@YarivGilad

Description

@YarivGilad

Hi, Thank you for this cool library!
Is there a working example of flickity with react rendered on the server side??
I'm trying to integrate flickity in an isomorphic app which renders react also on the server using this gist and get the following error:

\node_modules\flickity\js\index.js:40
})( window, function factory( Flickity ) {
    ^
ReferenceError: window is not defined

Do you have any idea how to solve this issue?
Cheers
Ajar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions