react-tooltip-component icon indicating copy to clipboard operation
react-tooltip-component copied to clipboard

Problem using react-tooltip-component on the server side

Open lbdremy opened this issue 9 years ago • 1 comments

I'm getting this error while using the react-tooltip-component on the server side.

/front/node_modules/react-tooltip-component/lib/Tooltip.js:188
      container: document.body,
                 ^
ReferenceError: document is not defined
    at /Users/rloubradou/workspace/front/node_modules/react-tooltip-component/lib/Tooltip.js:188:18

Setting container: null fixes the issue, and the component is still functional.

lbdremy avatar Mar 08 '16 17:03 lbdremy

@lbdremy I fixed that in psrebniak/react-tooltip-component. You can use this repository until @minhtranite will accept pull request.

psrebniak avatar Jan 29 '17 15:01 psrebniak