Skip to content

[Bug] TypeError: Cannot read properties of undefined (reading '0') #20532

@ZeRego

Description

@ZeRego

Version

^5.4.3

Link to Minimal Reproduction

n/a

Steps to Reproduce

We got a sentry report for this error. We haven't been able to reproduce locally.

Errors because invertedIndices is undefined.

 ../../../../node_modules/echarts/lib/data/SeriesData.js in SeriesData.prototype.rawIndexOf at line 721:20

      if (!invertedIndices) {
        throw new Error('Do not supported yet');
      }
    }
    var rawIndex = invertedIndices[value]; // throws error
    if (rawIndex == null || isNaN(rawIndex)) {
      return INDEX_NOT_FOUND;
    }
Screenshot 2024-11-22 at 09 37 44

Current Behavior

Throws error TypeError: Cannot read properties of undefined (reading '0')

Expected Behavior

Doesn't throw error

Environment

- OS: Windows >= 10
- Browser: Chrome 131.0.0
- Framework: React via "echarts-for-react": "^3.0.2"

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in English

    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