Take stock of your current versions

Observe Angular Material package versions in package.json:

package.json"dependencies": {  "@angular/core": "^5.0.0",  ...  "@angular/animations": "^5.0.0",  "@angular/cdk": "^5.0.0-rc0",  "@angular/flex-layout": "^2.0.0-beta.10-4905443",   "@angular/material": "^5.0.0-rc0",  "hammerjs": "^2.0.8",},

In this particular case, I had installed Material 5.0.0 during its RC phase. It is advisable to not ship Beta or RC libraries. Since our @angular/core package indicated that we're on Angular version 5.0.0, we will aim to upgrade to the latest 5.x.x release of Angular Material.

Get Angular 6 for Enterprise-Ready Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.