Closed jacodv closed 2 years ago
Sorry I see the angular version was not updated as part of the upgrage :-( Let me do that first ....
Looks like the Typescript compiler configuration might be to blame here, are you able to reproduce this on a clean project? compare the tsconfig.json
@jacodv any updates? were you able to resolve this?
@santam85, I downgraded to 12. We have more 13 issues, not just on ng charts. I will give it another try as soos as our current stories are complete on 12. Thanks for following up. I will revert here when I start the conversion again.
@jacodv - If you can include devDependencies from package.json that will help.
@santam85 - I can confirm I ran into a similar issue, when I was formerly on Angular 11 & TS v4.0.5, after upgrading to TS v4.3.5 and Angular 12 the issue went away
@tru-koto see below, thanks!
We have upgraded to 12 now. I have not tried to upgrade the charts yet
"devDependencies": {
"@angular-devkit/build-angular": "12.2.14",
"@angular-eslint/eslint-plugin": "12.3.1",
"@angular-eslint/eslint-plugin-template": "12.3.1",
"@angular-eslint/template-parser": "12.3.1",
"@angular/cli": "12.2.14",
"@angular/compiler-cli": "12.2.0",
"@angular/language-service": "12.2.0",
"@ngneat/spectator": "^8.3.1",
"@nrwl/cli": "12.10.0",
"@nrwl/cypress": "12.10.0",
"@nrwl/eslint-plugin-nx": "12.10.0",
"@nrwl/jest": "12.10.0",
"@nrwl/tao": "12.10.0",
"@nrwl/workspace": "12.10.0",
"@schematics/angular": "~10.0.0",
"@types/jest": "27.0.2",
"@types/jquery": "3.3.31",
"@types/node": "14.14.33",
"@typescript-eslint/eslint-plugin": "~4.31.0",
"@typescript-eslint/parser": "~4.31.0",
"codelyzer": "^6.0.0",
"cypress": "^6.0.1",
"dotenv": "10.0.0",
"eslint": "7.10.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-cypress": "^2.10.3",
"jest": "27.2.3",
"jest-preset-angular": "10.0.1",
"jest-zone-patch": "0.0.10",
"ng-packagr": "12.2.6",
"prettier": "2.3.1",
"replace-in-file": "^6.1.0",
"ts-jest": "27.0.5",
"ts-node": "~9.1.1",
"tslint": "~6.1.3",
"typescript": "4.3.5"
}
Will try to reproduce this with the versions you mentioned above
Is this package compatible with Angular 12?
Could reproduce similar types issues only by using outdated versions of Chart.js. Please make sure you are using v3 of Chart.js
ng2-charts v3 is compatible with angular 12/13, while v4 requires angular 14.
Our project builds successfully without ng2-charts (3.0.1) and chart.js (3.6.2). Below are the dependencies as well as the first page or two of the build errors (they are many).
I only added the
appModule
imports, not even started using the actual library.Dependencies
Build output subset