Exception in rendering!

Message: document is not defined

ReferenceError: document is not defined
    at Search.getCookiesHeight (/tmp/nacmartin_phpexecjs5b7564a8e152f8.17118426.js:68611:22)
    at Search.getCaptionPosition (/tmp/nacmartin_phpexecjs5b7564a8e152f8.17118426.js:68618:31)
    at new Search (/tmp/nacmartin_phpexecjs5b7564a8e152f8.17118426.js:68542:37)
    at ReactCompositeComponentMixin.mountComponent (/tmp/nacmartin_phpexecjs5b7564a8e152f8.17118426.js:7779:17)
    at Object.ReactReconciler.mountComponent (/tmp/nacmartin_phpexecjs5b7564a8e152f8.17118426.js:6164:36)
    at ReactDOMComponent.ReactMultiChild.Mixin.mountChildren (/tmp/nacmartin_phpexecjs5b7564a8e152f8.17118426.js:14708:45)
    at ReactDOMComponent.Mixin._createContentMarkup (/tmp/nacmartin_phpexecjs5b7564a8e152f8.17118426.js:11891:33)
    at ReactDOMComponent.Mixin.mountComponent (/tmp/nacmartin_phpexecjs5b7564a8e152f8.17118426.js:11779:30)
    at Object.ReactReconciler.mountComponent (/tmp/nacmartin_phpexecjs5b7564a8e152f8.17118426.js:6164:36)
    at ReactCompositeComponentMixin.mountComponent (/tmp/nacmartin_phpexecjs5b7564a8e152f8.17118426.js:7851:35)