Search code examples
javascriptangulartypescriptangular-materialmat-datepicker

@angular-material-components/datetime-picker - '@angular/material/datepicker"' has no exported member 'DateRange'


I'm on angular material 9.2.0. I installed @angular-material-components/datetime-picker for dateTimePicker .

I get this errors when I run ng build --prod.

enter image description here


Solution

  • I found a solution for that on github, The latest version 4.x.x supports Angular 10. For Angular 9, you should use the version 2.x by using this command:

    npm i @angular-material-components/[email protected] --save