crubier / react-graph-vis

A react component to render nice graphs using vis.js

Home Page:http://crubier.github.io/react-graph-vis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Cannot read property 'hasChildNodes' of null

opened this issue · comments

Im still getting Issue #6

vis.js:48138 Uncaught (in promise) TypeError: Cannot read property 'hasChildNodes' of null(…)

_create @ vis.js:48138
Network @ vis.js:33312
updateGraph @ index.js:201
componentDidMount @ index.js:65
notifyAll @ CallbackQueue.js:76
close @ ReactReconcileTransaction.js:80
closeAll @ Transaction.js:209
perform @ Transaction.js:156
batchedMountComponentIntoNode @ ReactMount.js:126
perform @ Transaction.js:143
batchedUpdates @ ReactDefaultBatchingStrategy.js:62
batchedUpdates @ ReactUpdates.js:97
_renderNewRootComponent @ ReactMount.js:319
_renderSubtreeIntoContainer @ ReactMount.js:401
render @ ReactMount.js:422
get @ FFGView.js [sm]:94
module.exports.ViewRegistry.createView @ :16995
module.exports.ViewRegistry.getView @ :16978
PaneElement.activeItemChanged @ pane-element.coffee:86
module.exports.Emitter.simpleDispatch @ :63093
module.exports.Emitter.emit @ :63209
module.exports.Pane.setActiveItem @ :25878
module.exports.Pane.addItem @ :26101
module.exports.Pane.activateItem @ :26030
(anonymous function) @ :23648
step @ :22498
commented

Are you getting this just with normal use? For me, everything works fine but I'm trying to write a jest test file and I get this error.

(Sorry, I commented in the closed issue by mistake. Reposting my comment here:)

I am seeing this too. In my case, I am trying to create a clone of an existing graph into a new window using the react-new-window library. I believe the base issue is that the graph uses document.getElementById to get its reference. Perhaps this would be fixed by #57 ?