fusioncharts / angular-fusioncharts

Angular Component for FusionCharts JavaScript Charting Library
https://fusioncharts.github.io/angular-fusioncharts/#/ex1
Other
55 stars 37 forks source link

When running tests, angular fusion charts is throwing TypeError: FusionChartsModules is not a function #74

Open JaredBourget opened 4 years ago

JaredBourget commented 4 years ago

Versions:

How we are importing FusionCharts into our spec files:

When we run our tests, we receive the error "TypeError: FusionChartsModules is not a function" as shown in the image below.

Error with FusionChartsModule

However, when we comment out the else statement on line 53 in angular-fusioncharts/dist/index.js, we no longer get the type error.

No Error when commented out

In both cases, with or without the FusionChartsModules(core), our charts still rendered perfectly fine. Is this an error that can easily be resolved on our end? Thanks.

AyanBhadury commented 2 years ago

ngCC compilation issue has been fixed, please upgrade to 3.2.0 : http://www.npmjs.com/package/angular-fusioncharts @JaredBourget