There's heavy usage of document and window, neither of which exists in the Node environment. You should include this package in a SSR project and try to make it work. Wrap window/document in conditionals and sometimes you have to rewrite some parts to make sure that server has a reasonable substitute or just doesn't run this at all. I've fought quite a lot with this before myself, this is by far the easiest way to deal with the problem :D
There's heavy usage of
documentandwindow, neither of which exists in the Node environment. You should include this package in a SSR project and try to make it work. Wrap window/document in conditionals and sometimes you have to rewrite some parts to make sure that server has a reasonable substitute or just doesn't run this at all. I've fought quite a lot with this before myself, this is by far the easiest way to deal with the problem :D