question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: child._updateFromParent is not a function

See original GitHub issue

Expected Behavior

When I update chart data, I want the chart to be updated.

Actual Behavior

When I update chart data, I get the error TypeError: child._updateFromParent is not a function (I tried to pass data throught event, vuex, and even tried to forceUpdate)

This is an error I got with the reactive prop example too (so I used reactive data example).

Environment

  • vue.js version: 2.1.8
  • vue-chart.js version: 2.5.0
  • npm version: 3.10.9

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
johnmercedcommented, Mar 18, 2017

Updating my packages to its latest versions seems like fixed the problem. vue@2.2.4 vuex@2.2.1

I was using: vue@2.1.10 vuex@2.1.1

1reaction
aperturelesscommented, Mar 17, 2017

Well yet again, without a working example to debug, I can’t really help. I don’t know what your methods do, I don’t know in which components they are etc.

For me this erros seems more related to vuex / vue lifecycle.

Generally vue-chartjs is working with vuex.

Sample project: https://github.com/apertureless/vue-chartjs-vuex

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "TypeError: $(...).children is not a function" - Stack Overflow
I try to select a certain DOM element with jQuery. The HTML content: <html> <head> <script src ...
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError - Some selector is not a function - jQuery is not a function - owlCarousel...
Read more >
m[dat[i].parent.toString(...)].children.push is not a function
im receiving this error. Uncaught TypeError: m[dat[i].parent.toString(...)].children.push is not a function. my code is this. $("#encodable-tree").jstree({.
Read more >
'X' is not a function TypeError in React [Solved] | bobbyhadz
The React.js Uncaught TypeError: X is not a function occurs when we try to call a ... The Child component should take a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found