I'm on angular material 9.2.0. I installed @angular-material-ponents/datetime-picker
for dateTimePicker .
I get this errors when I run ng build --prod
.
I'm on angular material 9.2.0. I installed @angular-material-ponents/datetime-picker
for dateTimePicker .
I get this errors when I run ng build --prod
.
-
Does it work if you change the import to
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 Docs – Jeremy Commented Jul 9, 2020 at 14:47 - stackblitz./edit/… – Jeremy Commented Jul 9, 2020 at 14:53
- Thank you @JeremyLucas for your response, no doesn't work – Asakkour Soufiane Commented Jul 9, 2020 at 14:57
-
Try manually deleting your
node_modules
folder,package-lock.json
, and then restarting your code editor, typingnpm install
and trying again – Jeremy Commented Jul 9, 2020 at 15:00 - 1 @AsakkourSoufiane thanks, struggling with this for half an hour now :D – Szörényi Ádám Commented Jul 10, 2020 at 8:47
1 Answer
Reset to default 17I 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 mand:
npm i @angular-material-ponents/[email protected] --save