Skip to content

Conversation

@MichaelDepp
Copy link

  • ReferenceError: window is not defined
  • ReferenceError: navigator is not defined

Faced this issues when I try to deploy my react js application to vercel.
So fixed this using this simple way.

Copy link

@amreen-rajmohmad amreen-rajmohmad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am also facing this error. It would be great to merge it but I see if a window is not defined we are not really setting it or creating a new one. So by default, it is as good as API not being available. Is there a way to create a window and have those apis?

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.

2 participants