Skip to content

Property 'graphData' does not exist on type 'ForceGraph3D<NodeObject, any>'. #694

@callumacrae

Description

@callumacrae

Describe the bug

As of this commit: b2d90b6

The recommended syntax (also enforced by type checking) is as follows:

const myGraph = new ForceGraph3D(<myDOMElement>)
  .graphData(<myData>);

This gives us the following error:

src/modules/clientNetwork/Network3d.vue:191:10 - error TS2339: Property 'graphData' does not exist on type 'ForceGraph3D<NodeObject, any>'.

Other methods we were previously using, such as warmupTicks(), also aren't available - but .width(), .height() and .cameraPosition() still are.

The old syntax still works fine, but type checking fails.

This is preventing us from updating to 1.74.0 :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions