h2qutc / angular-material-components

Angular Material Library provide extra components for every project
https://h2qutc.github.io/angular-material-components/
MIT License
332 stars 162 forks source link

Failed to import {DateRange} from '@angular/material/datepicker' find the error below: #102

Open santhoshnkl3 opened 4 years ago

santhoshnkl3 commented 4 years ago

node_modules/@angular-material-components/datetime-picker/lib/date-range-selection-strategy.d.ts:9:10 - error TS2305: Module '"../../../@angular/material/datepicker"' has no exported member 'DateRange'.

9 import { DateRange } from '@angular/material/datepicker'; image

Thazhar commented 4 years ago

I just ran into the same problem. Realized i just installed the newest version which is for angular 10, after installing the correct version for my version of angular the error disappeared. So make sure you installed the right version.

nialljt1 commented 4 years ago

I had the exact same problem even though I am running Angular 10. I am now using an earlier version of the datetimepicker component and it now compiles without error