Exception in rendering!

Message: location is not defined

ReferenceError: location is not defined
    at t.value (<anonymous>:70:29557)
    at _renderValidatedComponentWithoutOwnerOrContext (<anonymous>:64:8330)
    at _renderValidatedComponent (<anonymous>:64:8457)
    at performInitialMount (<anonymous>:64:4276)
    at mountComponent (<anonymous>:64:3322)
    at Object.mountComponent (<anonymous>:48:12322)
    at performInitialMount (<anonymous>:64:4436)
    at mountComponent (<anonymous>:64:3322)
    at Object.mountComponent (<anonymous>:48:12322)
    at mountChildren (<anonymous>:63:27978)