angular-fusioncharts icon indicating copy to clipboard operation
angular-fusioncharts copied to clipboard

Error Error using FcRoot in NgModule

Open luisrains opened this issue 4 years ago • 5 comments

I am having this error in angular kernel 8.2+. The code where it indicates how to use FusionChartsModule.fcRoot (FusionCharts, Charts, FusionTheme, TimeSeries); he is out of date.

ERROR in Error during compilation of 'FusionChartsModule' template Function calls are not supported by decorators in 'NgModule' 'NgModule' calls a function at ../@angular/core/core.ts(194.50).

luisrains avatar Feb 03 '21 18:02 luisrains

Could you try with fusioncharts: 3.16.0 & angular-fusioncharts:3.0.4

AyanBhadury avatar Feb 04 '21 06:02 AyanBhadury

Thanks for the reply.

But the truth has not worked for me. It throws me the same error.

I think line 5 of this section of code is the one that creates the problem.

Screenshot from 2021-02-04 11-51-27

luisrains avatar Feb 04 '21 14:02 luisrains

https://github.com/AyanBhadury/angular-fusioncharts-demo

You can clone the repo and test it

AyanBhadury avatar Feb 10 '21 16:02 AyanBhadury

I ran into this exact issue using angular-fusioncharts@^3.1.0. Downgrading to 3.0.4 resolved it for me, so it might be an issue introduced with the newer version.

jberndsen avatar Mar 12 '21 11:03 jberndsen

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

@jberndsen @luisrains

AyanBhadury avatar Sep 07 '21 13:09 AyanBhadury