Hello,
I'm trying to use a pivot-table in Angular 10, but get the error
ERROR in node_modules/@syncfusion/ej2-pivotview/src/pivotview/model/chartsettings-model.d.ts:1:2946 - error TS2305: Module '"../../../../ej2-charts"' has no exported member 'SelectionPattern'.
and
node_modules/@syncfusion/ej2-pivotview/src/pivotview/model/chartsettings.d.ts:23:72 - error TS2305: Module '"../../../../ej2-charts"' has no exported member 'SelectionPattern'.
I've installed:
"@syncfusion/ej2-angular-grids": "18.3.42",
"@syncfusion/ej2-angular-navigations": "18.3.42",
"@syncfusion/ej2-angular-notifications": "18.3.35",
"@syncfusion/ej2-angular-pivotview": "18.3.40",
"@syncfusion/ej2-base": "18.3.40",
"@syncfusion/ej2-data": "18.3.42",
"@syncfusion/ej2-navigations": "18.3.42",
The installed version of ej2-charts is 18.3.42.
The installed version of ej2-pivotview is 18.3.40.
In my template I simply have
<ejs-pivotview #pivot id="pivot" height="350" [dataSourceSettings]="pivotDataSettings"></ejs-pivotview>
My pivotDataSettings:
public pivotDataSettings = {
dataSource: this.pivotData,
expandAll: false,
columns: [{name: 'Monat', caption: 'Monat'}],
values: [{name: 'Anzahl'}],
rows: [{name: 'SE'}]
}My pivotData is an array of the following objects:
{SE: number, Monat: string, Anzahl: number, editTimestamp: date}
I tried to uninstall and reinstall ej2-angular-pivotview, but it didn't help.
I hope you can help me.
Thank you.
Kind regards,
Michael