Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type 'MatCalendar<D>' is not assignable to type 'MatCalendar<ExtractDateTypeFromSelection<D>> #1787

Closed
Rashmin-kaur opened this issue Sep 10, 2020 · 3 comments
Labels
Awaiting Information further information is requested Wontfix this will not be worked on

Comments

@Rashmin-kaur
Copy link

Rashmin-kaur commented Sep 10, 2020

using
"@angular/cdk": "^10.1.3",
"@angular/common": "~10.0.14",
"@angular/compiler": "~10.0.14",
"@angular/core": "~10.0.14",
"@angular/flex-layout": "^10.0.0-beta.32",
"@angular/forms": "~10.0.14",
"@angular/material": "^10.1.3", versions and simply install and imported, then getting error on ng-serve while it is working fine in angular 9. Please resolve.

Error
Screenshot 2020-09-10 175856

@darcyclarke
Copy link
Contributor

@Rashmin-kaur are you having issues installing a package? OR is this a problem with the package itself? It sounds like it may be the latter. The type error seems to be coming from starting your Angular project & some kind of type configuration issue with mat-daterangepicker

If you run npm ls mat-daterangepicker you can figure out which of your dependencies - that you listed - is pulling that in & then you should check to see if things are configured & up-to-date (ex. you can run npm outdated --depth=9999 to see all your deps & which could be safely updated or just npm outdated mat-daterangepicker --depth=9999 to see that individual dep).

@darcyclarke darcyclarke added Community Awaiting Information further information is requested Wontfix this will not be worked on labels Sep 11, 2020
@xzegga
Copy link

xzegga commented Aug 9, 2021

Did you resolve this issue? I am experimenting the same issue on angular 10

@ljharb
Copy link
Contributor

ljharb commented Aug 9, 2021

It has nothing to do with npm; it’s a typescript error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Information further information is requested Wontfix this will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants