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

Uncaught TypeError: Cannot read properties of null (reading 'a') it's because dependencies @kurkle+color #11029

Open
rhnnss opened this issue Jan 4, 2023 · 4 comments

Comments

@rhnnss
Copy link

rhnnss commented Jan 4, 2023

Expected behavior

image
image

Current behavior

image
image

Reproducible sample

https://codesandbox.io/s/github/reactchartjs/react-chartjs-2/tree/master/sandboxes/bar/vertical?from-embed=&file=/App.tsx

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

4.0.1

Browser name and version

No response

Link to your project

No response

@LeeLenaleee
Copy link
Collaborator

Your reproducible sample is working fine, please add a reproducible sample.

@toniengelhardt
Copy link

I also get this error, but only in production, with nuxt 3.2.3 and vue-chartjs 5.2.0 and only on some devices and/or with some specific user data. I cannot reproduce it on my devices, but I see a lot of errors in Sentry without any useful stack trace:

Screenshot 2023-03-12 at 13 39 29

Screenshot 2023-03-12 at 13 42 09

@kurkle
Copy link
Member

kurkle commented Mar 12, 2023

I do not think there is a querySelectorAll call in either chart.js or the color lib. Maybe its some scriptable option?

For the original issue, I think the color lib can be improved to spot the error in data.

@toniengelhardt
Copy link

So strange, there is no querySelectorAll in my code and according to Daniel Roe in Nuxt neither (nuxt/nuxt#19086 (comment)). Where is it coming from, maybe a browser extension or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants