Error while building project : An accessor cannot be declared in an ambient context
See original GitHub issueFirst of all Thank you for a great plugin, really appropriate it.
I had an issue with 13.0.2 Version where I was getting Kind of undefined
as an error while trying prod build.
So I checked for it and found a new version released. I Updated the project and got a new error as below.
Error in Console
ERROR in node_modules/@swimlane/ngx-charts/lib/bar-chart/bar.component.d.ts(39,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/legend/legend-entry.component.d.ts(11,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/tooltip/tooltip.component.d.ts(19,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/tooltip/tooltip.directive.d.ts(30,17): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/tooltip/tooltip.directive.d.ts(31,17): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/count/count.directive.d.ts(17,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/count/count.directive.d.ts(18,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/count/count.directive.d.ts(19,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/count/count.directive.d.ts(20,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/count/count.directive.d.ts(21,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/count/count.directive.d.ts(22,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/svg-radial-gradient.component.d.ts(9,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/common/svg-radial-gradient.component.d.ts(10,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/number-card/number-card.component.d.ts(21,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/pie-chart/pie-label.component.d.ts(19,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/pie-chart/pie-label.component.d.ts(20,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/pie-chart/pie-label.component.d.ts(21,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/pie-chart/pie-label.component.d.ts(22,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@swimlane/ngx-charts/lib/pie-chart/pie-label.component.d.ts(23,9): error TS1086: An accessor cannot be declared in an ambient context.
Would really appreciate if I get solution on it 👍
ngx-charts version
13.0.3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:15 (3 by maintainers)
12.1.0 Works fine with angular 8 if you guys are running 8 😃 Had the same problem installing latest 13.0.3, but downgrading to 12.1.0 did the trick for now.
@pranavghate30 Try specifying the version to be
11.2.0
- since in the changelog it says that >= 12 is angular 8, and >= 13 is angular 9.