You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError: Cannot read property 'forExport' of undefined #321
When a user navigates to a new page after exporting chart, the content is not displayed.
Console gives error TypeError: Cannot read property 'forExport' of undefined
TypeError: Cannot read property 'forExport' of undefined
Product version
highcharts: 7.2.1, angular: 8.1.2, angular-highcharts: 8.0.3
Resolved: the forExport-on-destroy crash was caused by Highcharts re-invoking the chart callback with a throwaway export copy, which overwrote the stored chart reference with one Highcharts immediately frees. Current versions guard against that doubled callback (if (!this.ref)), so the reference stays pinned to the live chart and destroy() no longer dereferences a freed chart. Regression coverage added in #401. Closing as fixed — please reopen if it still occurs on a current release.
Activity
nisaanwaar commentedon Oct 4, 2022
did you solve this?
cebor commentedon Jul 23, 2026
Resolved: the
forExport-on-destroy crash was caused by Highcharts re-invoking the chart callback with a throwaway export copy, which overwrote the stored chart reference with one Highcharts immediately frees. Current versions guard against that doubled callback (if (!this.ref)), so the reference stays pinned to the live chart and destroy() no longer dereferences a freed chart. Regression coverage added in #401. Closing as fixed — please reopen if it still occurs on a current release.test: lock in the #238 export-callback guard against forExport crashes (