0

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

NearHuscarl
  • 66,950
  • 18
  • 261
  • 230
frustrated-dev
  • 431
  • 6
  • 29

1 Answers1

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