Skip to content

TypeError: Cannot read properties of null (reading 'index') #26

Open
@skyfish-1024

Description

@skyfish-1024

使用Hierarchy.compactBox函数,在dev模式下运行正常,在production模式下会报错:TypeError: Cannot read properties of null (reading 'index')

发生错误的函数为内部函数,似乎是未作非空判断,

  • 操作系统:windows11
  • "@antv/hierarchy": "^0.6.11"
  • "vue": "^3.4.19"
  • "vite": "^5.1.4"

image
image

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