Skip to content

Error on Server-Side  #60

Description

@FabianSellmann

_scale: window.devicePixelRatio || 1 will throw an error since window is not defined on the server. Since this is a static property, error will be thrown already when you import the the module.

Activity

  1. hello-alf commented on Oct 19, 2018

    @hello-alf

    I have this problem too

  2. codesignist commented on Aug 19, 2019

    @codesignist

    If you use next.js you can render on client side.

    https://nextjs.org/docs#with-no-ssr

  3. jtterra commented on Dec 2, 2019

    @jtterra

    No fixes yet ?

  4. pughpugh commented on Dec 29, 2020

    @pughpugh
    Owner

    Thaks for reporting this. I've not got this set up to replicate, but I've pushed a fix. Let me know if there are any issues.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions