kuhnroyal / mat-datetimepicker

Material datetimepicker for @angular/material
MIT License
152 stars 86 forks source link

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

Open aleswi opened 9 months ago

aleswi commented 9 months ago

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 commented 9 months ago

do I understand your question right?

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