Skip to content

ReferenceError: window is not defined #2

Description

@elverskog

Hi - I get the error below passed from the server. My app is isomorphic. It looks like this module is only intended to work for react apps that render on the server. Is that correct or am I missing something? I am currently looking to see if I can suspend execution for the entire module if window is missing.

ReferenceError: window is not defined
at /home/ubuntu/react/react-sandbox/node_modules/react-inline-grid/lib/matchMedia.js:25:17
at Array.map (native)
at setState (/home/ubuntu/react/react-sandbox/node_modules/react-inline-grid/lib/matchMedia.js:21:16)
at MatchMedia.updateState (/home/ubuntu/react/react-sandbox/node_modules/react-inline-grid/lib/matchMedia.js:62:18)
at new MatchMedia (/home/ubuntu/react/react-sandbox/node_modules/react-inline-grid/lib/matchMedia.js:49:17)
at Object.matchMedia as default
at new Grid (/home/ubuntu/react/react-sandbox/node_modules/react-inline-grid/lib/components/Grid.js:138:41)
at [object Object].ReactCompositeComponentMixin.mountComponent (/home/ubuntu/react/react-sandbox/node_modules/react/lib/ReactCompositeComponent.js:141:16)
at [object Object].wrapper as mountComponent
at Object.ReactReconciler.mountComponent (/home/ubuntu/react/react-sandbox/node_modules/react/lib/ReactReconciler.js:37:35)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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