Exception in rendering!

Message: location is not defined

ReferenceError: location is not defined
    at t.value (<anonymous>:70:352649)
    at _renderValidatedComponentWithoutOwnerOrContext (<anonymous>:70:766318)
    at _renderValidatedComponent (<anonymous>:70:766445)
    at performInitialMount (<anonymous>:70:762286)
    at mountComponent (<anonymous>:70:761332)
    at Object.mountComponent (<anonymous>:46:98195)
    at performInitialMount (<anonymous>:70:762446)
    at mountComponent (<anonymous>:70:761332)
    at Object.mountComponent (<anonymous>:46:98195)
    at mountChildren (<anonymous>:70:757167)