Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 4.5.0 WebpackError: ReferenceError: window is not defined during SSR #821

Closed
ThewBear opened this issue Jan 14, 2020 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@ThewBear
Copy link

Describe the bug
Using with gatsby will cause ReferenceError: window is not defined during build time.

To Reproduce
Use useForm hook in gatsby pages.

Here is where the error happens.

const isWindowUndefined = isUndefined(window);

@bluebill1049
Copy link
Member

thanks will patch that issue. thanks

@bluebill1049 bluebill1049 added the bug Something isn't working label Jan 14, 2020
@bluebill1049
Copy link
Member

bluebill1049 commented Jan 14, 2020

can you try this beta? react-hook-form@4.5.1-beta.2

@senol-keskin
Copy link

can you try this beta? react-hook-form@4.5.1-beta.2

it works for me, thanks!

bluebill1049 added a commit that referenced this issue Jan 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants