Asakkour Soufiane
Asakkour Soufiane

Reputation: 514

@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

Upvotes: 3

Views: 9962

Answers (1)

Asakkour Soufiane
Asakkour Soufiane

Reputation: 514

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

Upvotes: 17

Related Questions