Unable to recognize @angular/material?

133 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 answers

0
John 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