Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ZeRego opened this issue Nov 22, 2024 · 0 comments · Fixed by #20534
Closed

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

ZeRego opened this issue Nov 22, 2024 · 0 comments · Fixed by #20534
Labels
bug en This issue is in English

Comments

@ZeRego
Copy link

ZeRego commented Nov 22, 2024

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

@ZeRego ZeRego added the bug label Nov 22, 2024
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Nov 22, 2024
@plainheart plainheart removed the pending We are not sure about whether this is a bug/new feature. label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants