patternfly / patternfly-react

A set of React components for the PatternFly project.
https://react-staging.patternfly.org/
MIT License
794 stars 357 forks source link

BulletChart tooltip generates "unable to find node" error #1030

Closed dlabrecq closed 5 years ago

dlabrecq commented 5 years ago

I'm attempting to use the bullet chart in the Koku UI. When hovering over the bullet chart, I encounter this error instead of seeing a tooltip.

Error: Unable to find node on an unmounted component

screen shot 2018-12-08 at 8 25 39 am

It was suggested this may be related to a recent change regarding imports?

Note: I'm using patternfly-react v2.25.4, react-bootstrap v0.32.1, & react-dom v16.4.1.

My Test Example:

const values = [{
  title: 'Core-Hours',
  value: 35
}, {
  title: 'Requests',
  value: 55
}];
return (
  <BulletChart values={values}/>
  ...
jeff-phillips-18 commented 5 years ago

Now that I see the error message better, this is not an import issue. Sorry for that false info.

dlabrecq commented 5 years ago

Seems to be a mismatch between react-dom and react-bootstrap.

I updated react-dom to 16.6.3 and react-bootstrap to 0.32.4. I thought it was react-dom, but it wouldn't work without also updating react-bootstrap.