Exception in rendering!

Message: window is not defined

ReferenceError: window is not defined
    at useCurrentNylokalEvent (file:///dist/register-components.mjs:60832:5)
    at NylokalEvent (file:///dist/register-components.mjs:61067:17)
    at d (/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:33:498)
    at bb (/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:36:16)
    at b.render (/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:42:43)
    at b.read (/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:41:83)
    at exports.renderToString (/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:52:138)
    at Object.serverRenderReactComponent [as default] (file:///dist/register-components.mjs:571:37)
    at Object.serverRenderReactComponent (file:///dist/register-components.mjs:793:48)
    at eval (eval at <anonymous> (file:///server.mjs:39:18), <anonymous>:4:23)