Skip to content

[Bug] Cannot read properties of undefined (reading 'length')  #16753

@D-xuanmo

Description

@D-xuanmo

Version

5.3.1

Link to Minimal Reproduction

https://codesandbox.io/s/echarts-bug-3tyi68?file=/src/Echarts.ts

Steps to Reproduce

Turn on the gradient color in the chart. When the mouse moves into the chart, it will report errors in an endless cycle. If the gradient color is removed, it will be normal. Remove 75 lines of code in the file and everything is normal.

Current Behavior

Chart dead cycle error reporting.

Expected Behavior

You can stop reporting errors and use them normally.

Environment

- OS: macOS Monterey
- Browser: Chrome 96.0.4664.55
- Framework: React@17

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnot-a-bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions