apertureless / vue-chartjs

📊 Vue.js wrapper for Chart.js
https://vue-chartjs.org
MIT License
5.56k stars 838 forks source link

[Bug]: error during Vue render: mounted hook undefined is not an object (evaluating 't.labels') #1101

Open TylerWanta opened 4 months ago

TylerWanta commented 4 months ago

Would you like to work on a fix?

Current and expected behavior

Error happens when using vue-chartjs on safari 11 or 12. The chart does not load.

TypeError: Error during Vue render: mounted hook
undefined is not an object (evaluating 't.labels')
(anonymous function) utils.ts:96
(anonymous function) chart.ts:37
qt vue.global.js:1688
Yt vue.global.js:1697
__weh vue.global.js:4171
yn vue.global.js:1883
_n vue.global.js:1927
promiseReactionJob

Looks like data is undefined when deconstructing props here

Data is still defined when combining props here

Other areas using just vue are working fine.

Expected behavior: I expect the chart to work as normal. Everything works fine on safari 13+

Reproduction

Use vue-chartjs on safari 11 or 12

chart.js version

^4.1.1

vue-chartjs version

5.3.0

Possible solution

No response