Unable to recognize @angular/material?

149 Views Asked by At

I'm using stackblitz to compile an Angular application and I also added @angular/material in the dependencies. I don't know why the compiler wont recognize the dependency I installed.

enter image description here

1

There are 1 best solutions below

0
On BEST ANSWER

You have to import the modules from the correct location

import {MatDatepickerModule} from '@angular/material/datepicker';
import {MatNativeDateModule} from '@angular/material/core';

Here is a Stackblitz which I forked from your example