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.
Asked
Active
Viewed 131 times
0

NearHuscarl
- 66,950
- 18
- 261
- 230

frustrated-dev
- 431
- 6
- 29
-
1please share the link to the stackblitz instead of the screenshot – tommueller Oct 07 '20 at 05:13
-
i updated it sir – frustrated-dev Oct 07 '20 at 05:16
1 Answers
2
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

John
- 10,165
- 5
- 55
- 71