When we use this library in a server-side rendering environment, we get the error ReferenceError: window is not defined
if you look at the source, it looks like the error is at line 1:456 which maps to where window is referenced in this formatted version.

This means window is referenced on module import, so even if we wait to render the component until it is mounted (i.e., in the browser) we get this error from module import alone. We have a work around to lazy load the module when a parent component is mounted, but it's a lot of setup just to work.
This SO question suggests that it may be your webpack output configuration.
When we use this library in a server-side rendering environment, we get the error
ReferenceError: window is not definedif you look at the source, it looks like the error is at line
1:456which maps to wherewindowis referenced in this formatted version.This means
windowis referenced on module import, so even if we wait to render the component until it is mounted (i.e., in the browser) we get this error from module import alone. We have a work around to lazy load the module when a parent component is mounted, but it's a lot of setup just to work.This SO question suggests that it may be your webpack output configuration.