Chart.js 3 + Angular/TS issue #11437
Unanswered
bacigalupe
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working in a project. These are the packages used:
├── @angular-devkit/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @ng-bootstrap/[email protected]
├── @ng-select/[email protected]
├── @ngtools/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
When I try to compile (ng build --prod) I get the following errors:
ERROR in node_modules/chart.js/types/index.esm.d.ts(503,5): error TS2304: Cannot find name 'OffscreenCanvasRenderingContext2D'.
node_modules/chart.js/types/index.esm.d.ts(505,5): error TS2304: Cannot find name 'OffscreenCanvas'.
node_modules/chart.js/types/index.esm.d.ts(506,35): error TS2304: Cannot find name 'OffscreenCanvas'.
node_modules/chart.js/types/index.esm.d.ts(507,62): error TS2304: Cannot find name 'OffscreenCanvas'.
node_modules/chart.js/types/index.esm.d.ts(3236,66): error TS2315: Type 'DeepPartial' is not generic.
node_modules/chart.js/types/index.esm.d.ts(3250,65): error TS2315: Type 'DeepPartial' is not generic.
node_modules/chart.js/types/index.esm.d.ts(3271,5): error TS2315: Type 'DeepPartial' is not generic.
node_modules/chart.js/types/utils.d.ts(5,13): error TS2456: Type alias 'DeepPartial' circularly references itself.
node_modules/chart.js/types/utils.d.ts(8,5): error TS2315: Type '_DeepPartialArray' is not generic.
node_modules/chart.js/types/utils.d.ts(12,8): error TS2456: Type alias '_DeepPartialArray' circularly references itself.
node_modules/chart.js/types/utils.d.ts(12,37): error TS2315: Type 'DeepPartial' is not generic.
node_modules/chart.js/types/utils.d.ts(13,49): error TS2315: Type 'DeepPartial' is not generic.
Any idea what'd be the way to get these fixed?
Thanks a lot in advance!
Beta Was this translation helpful? Give feedback.
All reactions