angular-material-components icon indicating copy to clipboard operation
angular-material-components copied to clipboard

Unable to update to Angular Material 14

Open Ombrelin opened this issue 3 years ago • 3 comments

Fetching dependency metadata from registry...
                  Package "@angular-material-components/datetime-picker" has an incompatible peer dependency to "@angular/cdk" (requires "^13.0.1", would install "14.2.2").
                  Package "@angular-material-components/datetime-picker" has an incompatible peer dependency to "@angular/material" (requires "^13.0.1", would install "14.2.2").

Ombrelin avatar Sep 17 '22 09:09 Ombrelin

Do a force upgrade --force and then upgrade the @angular-material-components packages separately.

victorbadila avatar Sep 21 '22 12:09 victorbadila

Tapping on this one, I'm using Material/14, and getting errors using "@angular-material-components/color-picker": "^8.0.0",

@victorbadila Should I use a different version?

error TS2739: Type 'AbstractControl<any, any>' is missing the following properties from type 'FormControl<any>': defaultValue, registerOnChange, registerOnDisabledChange

13         <input matInput [ngxMatColorPicker]="picker" [formControl]="colorCtr" [disabled]="disabled"/>
                                                         ~~~~~

ayashjorden avatar Sep 27 '22 04:09 ayashjorden

Theoretically no, as seen in the compatibility table here: https://www.npmjs.com/package/@angular-material-components/color-picker

As for why it doesn't work, no clue, haven't used this component. I'm having my own problems with datetime-picker in angular 14 it seems

victorbadila avatar Sep 27 '22 06:09 victorbadila