apertureless / vue-chartjs

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

Uncaught TypeError: Cannot read property 'chartId' of undefined #74

Closed arunrreddy closed 7 years ago

arunrreddy commented 7 years ago

Expected Behavior

I am using the reactiveProp mixin. The chart should update with the new values fetched from the api.

Actual Behavior

It is throwing an Error in the console. Uncaught TypeError: Cannot read property 'chartId' of undefined at getPropDefaultValue (eval at (app.js:814), :1323:14) at validateProp (eval at (app.js:814), :1287:13) at updateChildComponent (eval at (app.js:814), :2150:20) at prepatch (eval at (app.js:814), :3015:3) at patchVnode (eval at (app.js:814), :4792:7) at updateChildren (eval at (app.js:814), :4719:9) at patchVnode (eval at (app.js:814), :4803:29) at VueComponent.patch [as patch] (eval at (app.js:814), :4927:9) at VueComponent.Vue._update (eval at (app.js:814), :1992:19) at VueComponent.updateComponent (eval at (app.js:814), :2095:10)

Environment

apertureless commented 7 years ago

@arunrreddy Have you tried to update to the latest version? We're at 2.5.4

apertureless commented 7 years ago

ping @arunrreddy

apertureless commented 7 years ago

closed due to inactivity

smagew commented 7 years ago

@arunrreddy i have the same problem. How you solve it ?

apertureless commented 7 years ago

@smagew can you show some code snippets?

smagew commented 7 years ago

@apertureless i have the similar errors in debug console:

vuejs.js:529 TypeError: Cannot read property 'chartId' of undefined
    at getPropDefaultValue (vuejs.js:1426)
    at validateProp (vuejs.js:1390)
    at updateChildComponent (vuejs.js:2492)
    at prepatch (vuejs.js:3367)
    at patchVnode (vuejs.js:5170)
    at updateChildren (vuejs.js:5097)
    at patchVnode (vuejs.js:5181)
    at VueComponent.patch [as __patch__] (vuejs.js:5306)
    at VueComponent.Vue._update (vuejs.js:2327)
    at VueComponent.updateComponent (vuejs.js:2443)
handleError @ vuejs.js:529
(anonymous) @ vuejs.js:663
nextTickHandler @ vuejs.js:608

and

vuejs.js:529 TypeError: Cannot read property 'chartId' of undefined
    at getPropDefaultValue (vuejs.js:1426)
    at validateProp (vuejs.js:1390)
    at updateChildComponent (vuejs.js:2492)
    at prepatch (vuejs.js:3367)
    at patchVnode (vuejs.js:5170)
    at updateChildren (vuejs.js:5097)
    at patchVnode (vuejs.js:5181)
    at VueComponent.patch [as __patch__] (vuejs.js:5306)
    at VueComponent.Vue._update (vuejs.js:2327)
    at VueComponent.updateComponent (vuejs.js:2443)

But its my fault. I missed the error message from npm:

vue@^2.3.4, required by vue-chartjs@2.7.1

after vuejs update all works fine.