fusioncharts / angular-fusioncharts

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

Error Error using FcRoot in NgModule #105

Open luisrains opened 3 years ago

luisrains commented 3 years ago

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).

AyanBhadury commented 3 years ago

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

luisrains commented 3 years ago

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

AyanBhadury commented 3 years ago

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

You can clone the repo and test it

jberndsen commented 3 years ago

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.

AyanBhadury commented 2 years ago

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

@jberndsen @luisrains