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

Installing Version 3.1.0 and importing package results in a "Cannot read property 'fileName' of null" Error

Open DanielSandl opened this issue 4 years ago • 16 comments

When installing version 3.1.0 and adding this line:

import { FusionChartsModule } from 'angular-fusioncharts';

It results in an error saying "Cannot read property 'fileName' of null." This is not a problem with our repo, as this even happened when following the steps in the angular tutorial. In case anyone else gets this, the workaround is to downgrade to 3.0.4

DanielSandl avatar Dec 18 '20 18:12 DanielSandl

Unfortunately, this was not solved with a downgrade for me. It simply gives a different error Entry point '@angular/core' contains deep imports into (...)

fellmirr avatar Dec 23 '20 13:12 fellmirr

When installing version 3.1.0 and adding this line:

import { FusionChartsModule } from 'angular-fusioncharts';

It results in an error saying "Cannot read property 'fileName' of null." This is not a problem with our repo, as this even happened when following the steps in the angular tutorial. In case anyone else gets this, the workaround is to downgrade to 3.0.4

This worked for me. I'm using angular 11.0.5.

TroniPM avatar Dec 31 '20 01:12 TroniPM

Same issue here. This same thing happens when you run ngcc after installing.

Downgrading worked.

jerone avatar Jan 04 '21 12:01 jerone

Please try with angular-fusioncharts: 3.0.4

AyanBhadury avatar Jan 05 '21 16:01 AyanBhadury

Same issue and fixed downgrading the version

omanzelli avatar Jan 20 '21 12:01 omanzelli

Please check again and remove ^ from npm version

"angular-fusioncharts": "3.0.4",

serhiihordiichuk avatar Jan 25 '21 14:01 serhiihordiichuk

Same problem for me.

SpiderPork avatar Feb 08 '21 09:02 SpiderPork

Here is a working demo: https://github.com/AyanBhadury/angular-fusioncharts-demo

AyanBhadury avatar Feb 08 '21 11:02 AyanBhadury

Here is a working demo: https://github.com/AyanBhadury/angular-fusioncharts-demo

With angular-fusioncharts 3.0.4 and Angular 10.1.6. Did you try it with Angular 11.1.1 and angular-fusioncharts 3.1.0?

SpiderPork avatar Feb 08 '21 11:02 SpiderPork

As mentioned before use angular-fusioncharts: 3.0.4

3.1.0 has an issue with ngcc compilation

AyanBhadury avatar Feb 08 '21 11:02 AyanBhadury

As mentioned before use angular-fusioncharts: 3.0.4

3.1.0 has an issue with ngcc compilation

Is there an issue tracking ngcc compilation compatibility?

SpiderPork avatar Feb 08 '21 11:02 SpiderPork

drop a mail to [email protected] with your license details

As mentioned before use angular-fusioncharts: 3.0.4 3.1.0 has an issue with ngcc compilation

Is there an issue tracking ngcc compilation compatibility?

AyanBhadury avatar Feb 08 '21 11:02 AyanBhadury

Please check again and remove ^ from npm version

"angular-fusioncharts": "3.0.4",

Yes removing the caret works, otherwise same error above. I'm using angular 11.12.14.

jguo1002 avatar Jun 18 '21 18:06 jguo1002

ngCC compilation issue has been fixed, please upgrade to 3.2.0 : http://www.npmjs.com/package/angular-fusioncharts @jerone @fellmirr @serhiihordiichuk @TroniPM @jguo1002

AyanBhadury avatar Sep 07 '21 13:09 AyanBhadury

@AyanBhadury That's great news! 🎉

Where can we see the changes/changelog for the latest update?

The last commit on the develop branch is from June.
All other branches appear to be stale or bots.
Releases page is missing version information since 3.1.
There is no changelog file.
There is no information on the readme in this repo or NPM.
There is no information on the documentation page.

jerone avatar Sep 07 '21 15:09 jerone

@jerone the documentation is not updated yet, I will try to sync the GitHub repo soon, rest assured you can download the latest version from npmjs, internally only we have updated a few build configurations, implementation wise there is no change hence no other extra configuration is required at the user's end.

AyanBhadury avatar Sep 09 '21 12:09 AyanBhadury