Skip to content

SSR issues due to enquire.js dependency #2141

@darrug

Description

@darrug

Due to the enquire.js dependency when using server side rendering the compilation gives this error

✓ building client + server bundles...
✖ rendering pages...
build error:
 ReferenceError: window is not defined

enquire.js is no longer maintained. A merge request has been opened but I doubt it will be considered - enquire pull request.

I think there are two possibilities:

  • use a fork of enquire.js like the one proposed by this user
  • insert the code of enquire.js directly in react-slick and fix the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions