-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
extend is not a function (v 2.7.0) #4746
Comments
We are reorganizing internal dependencies (#4478) but it's not fully done yet and still need to be evaluated sequentially from I guess your issue is that Not sure what the workaround, maybe in your
by
|
@simonbrunel thanks for quick response. Tried your workaround but now I'm getting
Do you know when 2.8 is scheduled for release? |
I don't know how We just released 2.7 (2 days ago), nothing planned for 2.8. We will certainly release a 2.7.1, but not sure #4478 will be done until then. |
Tried the following but still the same
Maybe I should try creating issue at ng2-charts github |
@roman-17 - were you able to get a workaround for the issue. |
@imranmomin - for the time being, we're just using older version of chart.js - replacing whole folders of chart.js, chartjs-color and chartjs-color-string in node_modules (not so sure about necessity of replacing the last two, but it doesn't hurt) It's far from ideal though.. |
Thanks @roman-17 |
Been working on this all day, super frustrating because the error message doesn't easily lead you to believe that chart.js is causing the problem. Confirmed that all you need to do is go back to chart.js 2.6.0. The other folders are OK. (Note that ng2-charts install will install chart.js 2.7.0, so you need to specifically delete that and install 2.6.0 for just chart.js.) |
We are close to release 2.7.1: can someone be kind enough to prepare a package (or fiddle if possible) with everything needed to easily reproduce this issue and help us to find a temporary fix until 2.8? I'm not familiar with Angular and unfortunately don't have time to figure out how to setup that kind of environment. |
Well.. it looks like we are going to abandon ng2-charts, so someone else gotta do it. |
https://github.com/iquiw/chart-rollup I'm not sure this is what you want, this simple repo can cause |
@iquiw thanks a lot, should be enough to investigate. |
@benmccann yeah, sorry - it does work indeed. |
changing the chart.js version to v1.0.2 fixed this for me. |
Any fix? I get this when trying to use chartjs-plugins-datasource. It breaks on Chart.helpers.extend |
Hi, we're using ng2-charts (v 1.6.0) which has dependency on chart.js
Everything was working fine - that is, until the last release.
Now we're getting
The problem occurs with AoT build using rollup.
Rollup config:
Environment
I am not sure whether is it problem with chart.js or just rollup config.
The text was updated successfully, but these errors were encountered: