-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Description
Hi team, I am working on gatsby project ([email protected]
) which builds on netlify on every push. Project fails to build and it throws the following error:
error "window" is not available during server side rendering.
index.js
import React from "react";
import { useResponsive } from "react-hooks-responsive";
const Component = () => {
const { screenIsAtMost } = useResponsive({ sm: 640 });
const sm = screenIsAtMost("sm");
return (
<div>
Its Gatsby!!!
</div>
)
}
Here is the screenshot of the error:
mwelche
Metadata
Metadata
Assignees
Labels
No labels