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
Cannot read properties of undefined (reading 'forExport') #384
Hi, We are using offline export of highcharts, after exporting chart to any format whenever we route to another component we face below exception in console.
Updating highcharts is not an option.
Other solutions mentioned in this forum for same issue dont seem to work either
angular-highcharts": "8.0.1",
Angular 11.2.14
highcharts:7.1.2
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
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 (