Skip to content

Cannot read properties of undefined (reading 'forExport') #384

Closed

Description

@nisaanwaar

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

Activity

  1. cebor commented on Jul 23, 2026

    @cebor
    Owner

    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.

  2. added a commit that references this issue on Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions