weknowinc / react-bubble-chart-d3

React Bubble Chart using D3
MIT License
57 stars 56 forks source link

Experimenting errorr while trying to implement the example code #34

Open Chimaytric opened 3 years ago

Chimaytric commented 3 years ago

When I try to implement the basic test scenario, I'm thrown at the following error :

Uncaught Error: Unable to find node on an unmounted component.
    at findHostInstanceWithWarning (react-dom.development.js:24281)
    at Object.findDOMNode (react-dom.development.js:24804)
    at BubbleChart.componentDidMount (react-bubble-chart-d3.js:52)
    at commitLifeCycles (react-dom.development.js:20663)
    at commitLayoutEffects (react-dom.development.js:23426)
    at HTMLUnknownElement.callCallback (react-dom.development.js:3945)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:3994)
    at invokeGuardedCallback (react-dom.development.js:4056)
    at commitRootImpl (react-dom.development.js:23151)
    at unstable_runWithPriority (scheduler.development.js:646)
    at runWithPriority$1 (react-dom.development.js:11276)
    at commitRoot (react-dom.development.js:22990)
    at performSyncWorkOnRoot (react-dom.development.js:22329)
    at react-dom.development.js:11327
    at unstable_runWithPriority (scheduler.development.js:646)
    at runWithPriority$1 (react-dom.development.js:11276)
    at flushSyncCallbackQueueImpl (react-dom.development.js:11322)
    at flushSyncCallbackQueue (react-dom.development.js:11309)
    at discreteUpdates$1 (react-dom.development.js:22420)
    at discreteUpdates (react-dom.development.js:3756)
    at dispatchDiscreteEvent (react-dom.development.js:5889)

React version : 17.0.1 @weknow/react-bubble-chart-d3 version : 1.0.12

GoncaloGarcia commented 3 years ago

Downgrade react to 16.13.1

Chimaytric commented 3 years ago

Downgrade react to 16.13.1 It is not an ideal solution but it is good to know this lib isn't up to date. I finally managed to get what I need with nivo chart library : https://nivo.rocks/bubble/