-
Notifications
You must be signed in to change notification settings - Fork 462
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
TypeError: Cannot read property 'chart' of undefined at e.Chart.reflow #594
Comments
@mathiasconradt Thanks. PRs greatly appreciated. Otherwise I'll get to this when I next do some dev on this tool. |
I am not sure if this is the best solution to fix this: A check if In line 57, I added a check |
In case it helps in any way, I'm getting the same exception without the use of highcharts-ng. I initially thought it was somehow related with how the UI-Router transitions were happening, but I'm not sure now. I do have some |
Hi, Someone can resolve this problem?, because i had the same error message with this configurations "@types/highcharts": "^4.2.57", Thanks for answer, |
Having same issue when navigating away from the page when the chart is being drawn. Think it is because the element is no longer visible (element[0].clientWidth changes to 0 and element[0].clientHeight changes to 0) and this is triggering a redraw. Have submitted a PR with a change that has fixed the issue for me. |
One way that works is
And then add a new rule in the webpack.config.js
|
Please advise when this will be fixed |
Does this issue is resolved, I am still facing the same issue in an Angular(v8) application. |
In chart export options events: false add this property and try it.
|
I recently upgraded from
to
and only since then get this problem: I have a single page angular application (Angular 1.5.8) using Bootstrap UI (not sure if that matters).
When I have a page with a highchart directive
<highchart class="highchart-hover" config="chart"></highchart>
in it and I leave this page by navigating to another page/ route, I see this error in the Chrome developer console:Following the stack trace, I see the sources as follows:
As mentioned, with the older highcharts/highcharts-ng version, this problem did not exist.
Any idea what might cause this? I guess there is a check missing whether the chart object actually still exists.
Thanks.
(Unfortunately I don't have a jsfiddle at hand right now for this.)
The text was updated successfully, but these errors were encountered: