react-mutation-observer
react-mutation-observer copied to clipboard
Import results in "ReferenceError: window is not defined"
There's no check for if window exists before withObserver.js uses it.
I have the same issue
Same here
PR welcome
Though this is a client only lib so if you are doing something like server side rendering code split and async load the section with this using something like System.import
Me too. Ctrl+C + V from first line in npmjs.com and results this error.
I guess it's just a matter of doing
if (typeof window !== 'undefined) {...}