wojtekmaj/react-fit

Window undefined on Gatsby build time

Closed this issue · 1 comments

When using react-time-picker, react-fit is doing a check against window however it is undefined. This is because Gatsby is rendering (at build time) in Node, not in a browser.

In the meantime, I am setting this up to bypass the error.

Should be fixed in v1.0.4, please confirm.