After installing Angular Material , whenever I import anything form @angular/material I get this error
error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
I tried deleting node_modules and redownloading using npm install . tried to reinstall Angular Material ,still I get the same error over and over