angular-fusioncharts
angular-fusioncharts copied to clipboard
Fusion charts error with Angular 10.0.3
I'm currently using Angular 10.0.3 and I'm getting the following error:
Also when I check my angular-errors.log I have the following:
Does anyone know what is happening? I need to make this work for my job.
I forgot to paste my package.json:
{ "name": "fusioncharts-test", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/animations": "~10.0.4", "@angular/common": "~10.0.4", "@angular/compiler": "~10.0.4", "@angular/core": "~10.0.4", "@angular/forms": "~10.0.4", "@angular/platform-browser": "~10.0.4", "@angular/platform-browser-dynamic": "~10.0.4", "@angular/router": "~10.0.4", "angular-fusioncharts": "^3.0.4", "fusioncharts": "^3.17.0", "rxjs": "~6.5.5", "tslib": "^2.0.0", "zone.js": "~0.10.3" }, "devDependencies": { "@angular-devkit/build-angular": "~0.1000.3", "@angular/cli": "~10.0.3", "@angular/compiler-cli": "~10.0.4", "@types/node": "^12.11.1", "@types/jasmine": "~3.5.0", "@types/jasminewd2": "~2.0.3", "codelyzer": "^6.0.0", "jasmine-core": "~3.5.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~5.0.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~3.3.0", "karma-jasmine-html-reporter": "^1.5.0", "protractor": "~7.0.0", "ts-node": "~8.3.0", "tslint": "~6.1.0", "typescript": "~3.9.5" } }
Please remove ^ from angular-fusioncharts for example angular-fusioncharts:"3.0.4"
Then do npm install
Same here, fresh angular project. Tried removing ^ and reinstalling, did not help
@jonathanazulay check out this repo : https://github.com/AyanBhadury/angular-fusioncharts-demo
@AyanBhadury Thanks, that one worked, but it is angular 10. Is 12 not supported?
@jonathanazulay yes its compatible with angular 12 as well.
@AyanBhadury Is there a demo for version 12? Do I need to use a specific version of angular-fusioncharts?
I think this is caused by angular-fusioncharts listing @angular/core (with version 4!) as a dependency in it's package.json, causing problems with the Ivy compiler.
See this
https://stackoverflow.com/questions/60751199/error-in-cannot-read-property-filename-of-null-after-updating-angular-7-to-ang/61538414#61538414
ngCC compilation issue has been fixed, please upgrade to 3.2.0: http://www.npmjs.com/package/angular-fusioncharts
@racso9817 @jonathanazulay