Angular Compilation Warnings with Angular Material Declarations Angular Compilation Warnings with Angular Material Declarations angular angular

Angular Compilation Warnings with Angular Material Declarations


You will need to combine answers from Reid as well from Jens Mander

Do it in this order:

npm update @angular/cli @angular/cdk rxjsnpm install -S @angular/material @angular/cdk @angular/animationsnpm uninstall @angular/corenpm install -S @angular/core

After Angular meterials started work for me


If you have Angular 7, you should have Angular Material Version 7 too. So please install

npm install @angular/material@7.3.7 npm install @angular/cdk@7.3.7

If you have a package.json-file delete the node_modules folder, an in your console type npm install. This should reinstall all your node_modules. After that the warnings were gone.


I also have the same problem, then I changed the version of angular material.

Option 1 ::you can use the following commands to change your angular material version.

npm install --save @angular/material@7.3.7npm install --save @angular/cdk@7.3.7

you can check all the list of versions at angular material

Option 2: Try updating your angular version from 7 to 8