Skip to content

Conversation

@arielitovsky
Copy link

When using this library with Next.js and their Server Side Generation, I ran into an issue where the rendering server will return an error:

ReferenceError: window is not defined

This PR fixes that issue and allows us to skip this code on the server, but continue running on the client side.

This is needed because when the polyfill is imported, it automatically runs. However, we don't want it to run on the server side.
@hanayashiki
Copy link

we need this

@albertpurnama
Copy link

+1, need this!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants