[email protected]
Posts: 6
Joined: Fri Nov 13, 2020 7:50 am

Highcharts with Angular 12 is throwing data type mismatch errors during AOT compilation

Error: Type 'Event' is not assignable to type 'boolean'. [(update)]="updateFlag" </highcharts-chart>

HTML Code: <highcharts-chart
[Highcharts]="Highcharts"
[options]="chartOptions"
[(update)]="updateFlag"
>
</highcharts-chart>

Code runs properly in JIT compilation but with AOT i am getting several such data type issues.
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Highcharts with Angular 12 is throwing data type mismatch errors during AOT compilation

Hi,

Thanks for contacting us with your question!

It is hard to tell, what is not working without taking look at your code. Could you reproduce the issue in an online editor that I could work on?
You can start here: https://stackblitz.com/edit/highcharts- ... basic-line

Thank you in advance,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Usage”