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.
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
import {MatDatePickerModule} from '@angular/material/datepicker';instead of importing DateRange? Typically you need to import the entire module, and this is the correct one inside the Material Docsnode_modulesfolder,package-lock.json, and then restarting your code editor, typingnpm installand trying again