Check if executing in browser environment
michaelBenin opened this issue · comments
Server rendering yields:
ReferenceError: window is not defined
exenv
is a pretty good package for this.
Yeah! I'll look into this issue later this week. Thanks for the suggestion 😄
Released react-imgpro@1.2.0
! Should fix this.. let me know!
I am still getting this issue even with 1.2.0
Ohk! I got it. Need a runtime checker for non browser code. I'll post an update soon 😉
Done ✅ (update to 1.3.0
)
Thank you for the quick update!
Is it working now?