Ngx-charts: AOT : "Supplied parameters do not match any signature of call target"

Created on 11 Mar 2017  路  6Comments  路  Source: swimlane/ngx-charts

I'm submitting a ...

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior
When building with AOT, I got the error :

[at-loader] Checking finished with 26 errors
Error in bail mode: [at-loader] compiled/node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal-2d.component.ngfactory.ts:784:35
TS2346: Supplied parameters do not match any signature of call target.

Please tell us about your environment:
I'm using the AngularClass webpack seed

  • ngx-charts version: 4.2.1

  • Angular version: 2.4.6

capture d ecran 2017-03-11 a 16 12 38

Bug

Most helpful comment

Will this be resolved soon in a minor/patch release? Getting the same thing still using angular-cli with AoT (which no longer masks the warnings)

All 6 comments

I confirm this with following versions:

  • ngx-charts version: 4.3.0
  • Angular version: 2.4.9

Full error output:

```
ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-horizontal-2d.component.ngfactory.ts:784:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-horizontal-2d.component.ngfactory.ts:788:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-horizontal-normalized.component.ngfactory.ts:746:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-horizontal-normalized.component.ngfactory.ts:750:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-horizontal-stacked.component.ngfactory.ts:746:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-horizontal-stacked.component.ngfactory.ts:750:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-vertical-2d.component.ngfactory.ts:782:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-vertical-2d.component.ngfactory.ts:786:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-vertical-normalized.component.ngfactory.ts:746:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-vertical-normalized.component.ngfactory.ts:750:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-vertical-stacked.component.ngfactory.ts:746:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bar-chart\bar-vertical-stacked.component.ngfactory.ts:750:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\bubble-chart\bubble-chart.component.ngfactory.ts:696:41
TS2339: Property 'clipPathId' does not exist on type 'BubbleChartComponent'.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\force-directed-graph\force-directed-graph.component.ngfactory.ts:207:35
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\gauge\gauge-axis.component.ngfactory.ts:131:7
TS2346: Supplied parameters do not match any signature of call target.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\gauge\gauge-axis.component.ngfactory.ts:373:50
TS2339: Property 'big' does not exist on type 'any[]'.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\gauge\gauge-axis.component.ngfactory.ts:376:50
TS2339: Property 'big' does not exist on type 'any[]'.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\gauge\gauge-axis.component.ngfactory.ts:379:50
TS2339: Property 'small' does not exist on type 'any[]'.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\heat-map\heat-map.component.ngfactory.ts:642:48
TS2339: Property 'onActivate' does not exist on type 'HeatMapComponent'.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\heat-map\heat-map.component.ngfactory.ts:646:48
TS2339: Property 'onDeactivate' does not exist on type 'HeatMapComponent'.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\pie-chart\advanced-pie-chart.component.ngfactory.ts:342:44
TS2339: Property 'labels' does not exist on type 'AdvancedPieChartComponent'.

ERROR in [at-loader] compiled\node_modules\@swimlane\ngx-charts\release\pie-chart\pie-label.component.ngfactory.ts:300:67
TS2346: Supplied parameters do not match any signature of call target. ```

Will this be resolved soon in a minor/patch release? Getting the same thing still using angular-cli with AoT (which no longer masks the warnings)

I managed to resolve this by uninstalling angular-cli ,clearing the cache and reinstalling.

Uninstalling and reinstalling angular-cli didn't help me. I get "Supplied parameters do not match any signature of call target. " error and since build fails I cannot see produced ngfactory file.

This should be fixed in 5.2.1. Please let me know if it's still occurring.

When will it be fixed in the 4.x branch? (or how would one go about fixing it?) We've made a commitment to Angular 2 and cannot upgrade ngx-charts to 5.x.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianfdk picture ianfdk  路  3Comments

Jacquers picture Jacquers  路  3Comments

NashIlli picture NashIlli  路  3Comments

kakalos12 picture kakalos12  路  4Comments

ronybarbosa picture ronybarbosa  路  3Comments