Skip to content

error during serverside rendering #13

@KutnerUri

Description

@KutnerUri

when rendering in serverside (i.e. node), getting this error:

window is not defined

Obviously mutation observer is irrelevant to node environment, unless someone goes a long way to polyfill window and the dom.
My suggestion is to skip execution when typeof window === "undefined". (especially window.* calls)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions