d3/d3-force

random is not a function error

wunaidage opened this issue · 1 comments

Hi, I encounter this error:

ERROR TypeError: random is not a function
at jiggle.js:2
at apply (manyBody.js:81)
at Quadtree.visit (visit.js:7)
at force (manyBody.js:19)
at simulation.js:56
at Map.forEach ()
at Object.tick (simulation.js:55)
at layoutTick (force-graph.module.js:554)
at Function.tickFrame (force-graph.module.js:540)
at Function.comp. [as tickFrame] (kapsule.module.js:159)

I'm using https://github.com/vasturiano/force-graph but looks like this is a d3 error so I'm reporting here.

How were you able to resolve this?