starter icon indicating copy to clipboard operation
starter copied to clipboard

Getting server error

Open PSMJonas opened this issue 1 year ago • 0 comments

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")
    });
}

PSMJonas avatar Nov 14 '23 08:11 PSMJonas