How we are importing FusionCharts into our spec files:
import { FusionChartsModule } from 'angular-fusioncharts';
import * as FusionCharts from 'fusioncharts';
import * as Charts from 'fusioncharts/fusioncharts.charts';
FusionChartsModule.fcRoot(FusionCharts, Charts);
When we run our tests, we receive the error "TypeError: FusionChartsModules is not a function" as shown in the image below.
However, when we comment out the else statement on line 53 in angular-fusioncharts/dist/index.js, we no longer get the type error.
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.
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.
However, when we comment out the else statement on line 53 in angular-fusioncharts/dist/index.js, we no longer get the type error.
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.