Skip to content

Conversation

jabusir
Copy link

@jabusir jabusir commented Jul 1, 2023

Hi,

I was using this library in a Next.js application and ran into a bug in the os.js folder where 'window' was undefined since there is no 'window' object on the server side.

To resolve this issue I added some additional checking to see if the code was executing in a browser environment before trying to access the 'window' object.

I've attached an image of the error below.

image

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.

1 participant