-
Notifications
You must be signed in to change notification settings - Fork 459
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
helpers.merge is not a function #4
Comments
In case it helps, here's my options
|
@Techn1x it's definitely Maybe a cache / environment issue? |
Thanks, that is good to know and might explain a separate issue I'm having... I'll get back to you when I figure out what's going on. |
Yep, turns out npm & node_modules was lying to me! Despite all of the evidence saying 2.7.0, my website was using chart.js 2.6.0. Wasn't a caching issue, ended up being a chartjs plugin that was importing chartjs in a way that npm didn't recognise Datalabels are now appearing, with no errors, thanks! |
Getting the following error when loading up my charts;
This occurs on the following line;
https://github.com/chartjs/chartjs-plugin-datalabels/blob/master/src/plugin.js#L304
I am using Chart.js 2.7.0
![capture3](https://user-images.githubusercontent.com/1049837/30255683-c87c79a6-96e8-11e7-8007-c2d7ce87d8a3.PNG)
When I step through the code, I can see that
helpers
is defined, and has lots of helper functions, but is missingmerge
. It does however haveconfigMerge
andscaleMerge
which I believe are more specific use cases of the merge function. Shouldmerge
perhaps beconfigMerge
??Looking at the other variables on the line, config == {}, options == (default option object), override == undefined.
The text was updated successfully, but these errors were encountered: