alex_papanikos
Posts: 1
Joined: Thu Dec 01, 2022 11:00 am

Angular 13 Update - Uncaught TypeError

I upgraded from Angular 12 to Angular 13.3.12 and I am facing the below issue.

zone.js:182 Uncaught TypeError: this.Highcharts[(this.constructorType || "chart")] is not a function
at HighchartsChartComponent.updateOrCreateChart (highcharts-angular.js:37:1)
at highcharts-angular.js:25:1
at _ZoneDelegate.invoke (zone.js:372:1)
at Zone.run (zone.js:134:1)
at NgZone.runOutsideAngular (core.mjs:25593:1)
at HighchartsChartComponent.wrappedUpdateOrCreateChart (highcharts-angular.js:24:1)
at HighchartsChartComponent.ngOnChanges (highcharts-angular.js:16:1)
at HighchartsChartComponent.rememberChangeHistoryAndInvokeOnChangesHook (core.mjs:1508:1)
at callHook (core.mjs:2561:1)
at callHooks (core.mjs:2520:1)


The Highcharts version I am using is ^8.2.0 and highcharts-angular: 2.9.0

Is there anything specific I need to change, e.g. dependencies compatibility?
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Angular 13 Update - Uncaught TypeError

Hi alex_papanikos!
Welcome to our forum and thanks for contacting us with your question!

I was trying to reproduce your problem, but in my case, everything is working correctly. You can check it here: https://stackblitz.com/edit/highcharts- ... ine-4tlf4h

At first, I suggest upgrading Highcharts and Highcharts-angular libraries to the latest release, because you are using an older version. If that won't help, could you reproduce the issue in an online editor that I could work on? You can use e.g. demo from above and send me a forked link.

Kind regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Usage”