Ngx-charts: Upgraded to angular version 9 and can't run and build application

Created on 12 Feb 2020  路  6Comments  路  Source: swimlane/ngx-charts

Describe the bug
I'm trying to upgrade my whole application to latest version of angular.

Can't run and also build my application due to error that @swimline/ngx-charts has missing dependency : @angular/cdk/portal

To Reproduce
Steps to reproduce the behavior:

Just upgrade ngx-charts and angular to latest versions and try to run.

Screenshots

image

ngx-charts version
ngx-charts": "^13.0.2",

Bug

Most helpful comment

Try installing the @angular/cdk package. It's a peer dependency of the project.

https://github.com/swimlane/ngx-charts/blob/master/projects/swimlane/ngx-charts/package.json#L39

All 6 comments

Same problem here! I tried compiling in a project with Angular CLI V 8.3.23 & ngx-charts V 13.0.2 and got following:
Module not found: Error: Can't resolve '@angular/cdk/portal' in 'C:\PATH\node_modules\@swimlane\ngx-charts\fesm2015'

Try installing the @angular/cdk package. It's a peer dependency of the project.

https://github.com/swimlane/ngx-charts/blob/master/projects/swimlane/ngx-charts/package.json#L39

witch command i have to use to upgrade

Try installing the @angular/cdk package. It's a peer dependency of the project.

https://github.com/swimlane/ngx-charts/blob/master/projects/swimlane/ngx-charts/package.json#L39

It worked to me. I just added this line ""@angular/cdk": "^9.2.0"," in dependencies and then write npm install

A mi me funcion con este comando. npm install @angular/cdk --save

You need to install @angular/cdk. Just run this command 'npm i @angular/cdk'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NashIlli picture NashIlli  路  3Comments

achimha picture achimha  路  3Comments

amcdnl picture amcdnl  路  4Comments

faisalnet5 picture faisalnet5  路  3Comments

ronybarbosa picture ronybarbosa  路  3Comments