Skip to content

Getting server error #48

@PSMJonas

Description

@PSMJonas

Hey! I'm alsways getting the a server error:

TypeError: Cannot read properties of undefined (reading 'includes')

I have used the example implementation (Next.js):

screen

Apparently this line is to blame for the error:

static get platform() {
    const platform = typeof navigator !== "undefined" ? navigator.platform : "";
    return (0, _util.shadow)(this, "platform", {
      isWin: platform.includes("Win"),
      isMac: platform.includes("Mac")
    });
}

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