Closed mits87 closed 2 months ago
I'm using with ivy for over 4 months no issues
After release of angular 9.0 problem is back. I'm trying to add NgApexchartsModule to my module imports and build prod fails. It throws:
Property left of ForInStatement expected node to be of a type ["VariableDeclaration","LVal"] but instead got null
ng version
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.900.5
@angular-devkit/build-angular 0.900.5
@angular-devkit/build-ng-packagr 0.900.5
@angular-devkit/build-optimizer 0.900.5
@angular-devkit/build-webpack 0.900.5
@angular-devkit/core 9.0.5
@angular-devkit/schematics 9.0.5
@angular/cdk 9.1.1
@angular/http 7.2.15
@angular/material 9.1.1
@angular/material-moment-adapter 9.1.1
@ngtools/webpack 9.0.5
@schematics/angular 9.0.5
@schematics/update 0.900.5
ng-packagr 9.0.3
rxjs 6.5.4
typescript 3.7.5
webpack 4.41.2
apexcharts: 3.15.0 ng-apexcharts: 1.2.1
@igorkemack This issue Property left of ForInStatement expected node to be of a type ["VariableDeclaration","LVal"] but instead got null
was fixed recently.
Please update apexcharts to v3.16.1 and it will get resolved automatically.
I'm also getting
Error: src/app/template.html:16:39 - error TS2322: Type '{ type: string; }' is not assignable to type 'ApexChart'.
Types of property 'type' are incompatible.
Type 'string' is not assignable to type 'ChartType'.
16 <apx-chart [series]="options.series" [chart]="options.chart" [title]="options.title"></apx-chart>
But, adding any
seems to work.
public options: any = {
title: {
text: 'test'
},
chart: {
type: 'bar'
},
series: [
{
name: 'sales',
data: [30, 40, 35, 50, 49, 60, 70, 91, 125]
}
],
xaxis: {
categories: [1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999]
}
};
"@angular": "~11.2.1",
"apexcharts": "^3.25.0",
"ng-apexcharts": "^1.5.8",
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello,
I have problem with ng-apexcharts and angular 8 or 9 with ivy compiler. Let's say I have the template:
and configuration:
Everything is extremely easy. But when I use that with
ivy
compiler (doesn't matter 8 or 9 version of angular) then I got an error:Can you help me with that?