Skip to content
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 'forExport' of undefined #327

Open
RiccardoCampese opened this issue Mar 10, 2020 · 0 comments
Open

TypeError: Cannot read property 'forExport' of undefined #327

RiccardoCampese opened this issue Mar 10, 2020 · 0 comments

Comments

@RiccardoCampese
Copy link

Hi, I have a problem with this piece of code right here.
HighchartsChartComponent.prototype.ngOnDestroy = /** * @return {?} */ function () { // #44 if (this.chart) { // #56 // #56 this.chart.destroy(); this.chart = null; } };
Basically, when the onDestroy is called in my Angular component, this.chart.destroy(); throws an error:
TypeError: Cannot read property 'forExport' of undefined at c.Chart.destroy (highcharts.js:305) at HighchartsChartComponent.push.../../node_modules/highcharts-angular/fesm5/highcharts-angular.js.HighchartsChartComponent.ngOnDestroy (highcharts-angular.js:86)

Any idea on how to solve this problem? How can I make it not trigger that destroy method for my chart?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant