Skip to content

官网文档里的demo报错 #511

Description

@derek2035

Describe the bug

用官网这个demohttps://graphin.antv.vision/graphin/layout/leaf-cluster/,在本地运行时js会报错,demo的代码什么也没有改。
报错信息是:
Uncaught TypeError: Cannot set properties of null (setting 'width')
at AbstractGraph2.set (graph.js:293:19)

Your Example Website or App

https://github.com/cuidingfeng/transaction-analysis/blob/main/src/pages/Home/charts.tsx

Steps to Reproduce the Bug or Issue

1、yarn dev本地启动
2、本地访问:http://localhost:5173/home
3、改变窗口大小,触发resize

Expected behavior

正常应该js不报错,并且画中的节点可以点击交互

Screenshots or Videos

image

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 116.0.5845.96(正式版本) (arm64)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions