Exception in rendering!

Message: location is not defined

ReferenceError: location is not defined
    at BlockBase (webpack:///./packs/react-ssr.js_+_670_modules?:28736:3233)
    at eval (webpack:///../../node_modules/mobx-react-lite/es/index.js_+_16_modules?:406:49)
    at useObserver (webpack:///../../node_modules/mobx-react-lite/es/index.js_+_16_modules?:294:16)
    at wrappedComponent (webpack:///../../node_modules/mobx-react-lite/es/index.js_+_16_modules?:406:16)
    at d (webpack:///../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js?:33:498)
    at ab (webpack:///../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js?:36:16)
    at a.b.render (webpack:///../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js?:42:43)
    at a.b.read (webpack:///../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js?:41:83)
    at Object.exports.renderToString (webpack:///../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js?:50:494)
    at processReactElement (webpack:///../../node_modules/react-on-rails/node_package/lib/serverRenderReactComponent.js?:93:41)
    at Object.serverRenderReactComponent [as default] (webpack:///../../node_modules/react-on-rails/node_package/lib/serverRenderReactComponent.js?:107:28)
    at Object.serverRenderReactComponent (webpack:///../../node_modules/react-on-rails/node_package/lib/ReactOnRails.js?:194:52)
    at <anonymous>:6:31
    at <anonymous>:13:11