I'm getting ReferenceError: window is not defined errors during build process on server side. Same on 0.4.0 and 0.5.0. I tried to redefine window, but it doesn't changed the situation. The errors appear even while import on this line of code return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())
I'm getting
ReferenceError: window is not defined
errors during build process on server side. Same on 0.4.0 and 0.5.0. I tried to redefine window, but it doesn't changed the situation. The errors appear even whileimport
on this line of codereturn/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())
Here is my code:
` import ScrollBar from 'react-scrollbar const ScrollArea = ({ children, props }) => { return ( <ScrollBar speed={0.2} horizontal={false} vertical={true} contentWindow={window || {}} ownerDocument={document || {}} {...props}