Angular and Angular material upgrade from v5.x to v6.x

115 Views Asked by At

I am trying to update my existing angular project from v5.x to v6.x along with angular material.

I have done the following steps -

  1. I deleted existing node_module folder

  2. Followed all the steps mentioned here - update to ng 6

  3. Installed latest angular material and cdk and hammer.js as mentioned in latest angular material guide.

  4. I re-ran - npm install - deleting earlier node_modules folder and clean npm cache.

BUT When I run ng serve - I get the following errors - Please look at the screen shot attached.

Any help or clue will be highly appreciated!!

enter image description here

Package.json screenshot-

Package.json

1

There are 1 best solutions below

2
On

Try npm install @angular/cdk --save.

Also, it would help us a lot if you could post your package.json file.