The Angular Material version (10.2.2) does not match the Angular CDK version (10.2.5). Please ensure the versions of these two packages exactly match. code example Example: install angular cdk npm i @angular/cdk --save