Exception in rendering!

Message: document is not defined

ReferenceError: document is not defined
    at x (<eval>:56:339523)
    at o (<eval>:148:11030)
    at _e (<eval>:148:12048)
    at e.t.render (<eval>:148:14564)
    at e.t.read (<eval>:148:14140)
    at Ee.renderToString (<eval>:148:19346)
    at f.a.register.App (<eval>:217:1101488)
    at t.default (<eval>:68:704743)
    at t.default (<eval>:148:25286)
    at Object.v.ReactOnRails.serverRenderReactComponent (<eval>:68:96487)