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/build-angular@0.800.6
├── @angular/animations@8.2.5
├── @angular/cdk@8.2.3
├── @angular/cli@8.3.29
├── @angular/common@8.2.5
├── @angular/compiler-cli@8.2.5
├── @angular/compiler@8.2.5
├── @angular/core@8.2.5
├── @angular/forms@8.2.5
├── @angular/language-service@7.2.16
├── @angular/material@8.2.3
├── @angular/platform-browser-dynamic@8.2.5
├── @angular/platform-browser@8.2.5
├── @angular/router@8.2.5
├── @ng-bootstrap/ng-bootstrap@5.3.1
├── @ng-select/ng-select@3.7.3
├── @ngtools/webpack@8.0.6
├── @types/accounting@0.4.2
├── @types/bluebird@3.5.32
├── @types/jasmine@2.8.17
├── @types/jasminewd2@2.0.8
├── @types/jquery@3.5.0
├── @types/lodash@4.14.157
├── @types/node@6.0.118
├── accounting@0.4.1
├── acorn@6.4.1
├── ajv@6.12.3
├── bluebird@3.7.2
├── bootstrap@4.5.0
├── chart.js@3.0.1
├── chartjs-plugin-datalabels@2.0.0
├── chokidar@3.4.3
├── codelyzer@5.2.2
├── core-js@2.5.5
├── jasmine-core@2.8.0
├── jasmine-spec-reporter@4.2.1
├── jquery@3.6.1
├── karma-chrome-launcher@2.2.0
├── karma-coverage-istanbul-reporter@1.4.3
├── karma-jasmine-html-reporter@0.2.2
├── karma-jasmine@1.1.2
├── karma@3.1.4
├── lodash@4.17.21
├── popper.js@1.16.1
├── protractor@5.4.4
├── q@1.5.1
├── rxjs-compat@6.1.0
├── rxjs@6.6.0
├── ts-node@4.1.0
├── tslint@5.9.1
├── typescript@3.4.5
└── zone.js@0.9.1
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