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

Problem with dependecies for @mat-datetimepicker/moment with @angular/material #488

Open
aleswi opened this issue Sep 28, 2023 · 1 comment

Comments

@aleswi
Copy link

aleswi commented Sep 28, 2023

Hi,
i have a problem with @mat-datetimepicker/moment. "@mat-datetimepicker/core": "^7.0.1" fits with my version of angular material but /moment causes such dependency error:
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/material@"~12.1.0" from @mat-datetimepicker/moment@7.0.1
npm ERR! node_modules/@mat-datetimepicker/moment
npm ERR! @mat-datetimepicker/moment@"^7.0.1" from the root project
Next version is only 8.0.0 and higher, is there any other option than changing a little bit @angular/material version ?
My angular dependencies in package.json:
"@angular/animations": "~12.2.17",
"@angular/cdk": "~12.2.13",
"@angular/common": "~12.2.17",
"@angular/compiler": "~12.2.17",
"@angular/core": "~12.2.17",
"@angular/forms": "~12.2.17",
"@angular/material": "~12.2.13",
"@angular/material-moment-adapter": "^12.2.13",
"@angular/platform-browser": "~12.2.17",
"@angular/platform-browser-dynamic": "~12.2.17",
"@angular/router": "~12.2.17",
"@mat-datetimepicker/core": "^7.0.1",
"@mat-datetimepicker/moment": "^7.0.1",

@bbortt
Copy link
Collaborator

bbortt commented Oct 1, 2023

do I understand your question right?

  • you're still on @angular/core@>v12 <v13?
  • and therefore need compatible @mat-datetimepicker/moment adapters which is @mat-datetimepicker/moment@>7 <8?

but these two are incompatible due to peer dependencies coming from @mat-datetimepicker/moment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants