
| Tech | Version |
|---------------------|---------|
| material-ui-pickers | 2.1.2 |
| material-ui | 3.9.2 |
| React | 16.8.0-alpha.1 |
| Browser | Chrome |
| Peer library | "@date-io/moment": "1.0.2" |
@material-ui/core from 3.9.1 to 3.9.2
no errors
node_modules/material-ui-pickers/DatePicker/components/Calendar.d.ts(65,70):
TS2344: Type '"date" | "classes" | "onChange" | "innerRef" | "theme" | "minDate" | "disablePast" | "disableFuture" | "maxDate" | "shouldDisableDate" | "leftArrowIcon" | "rightArrowIcon" | "renderDay" | "allowKeyboardControl"' does not satisfy the constraint '"date" | "classes" | "onChange" | "theme" | "utils" | "minDate" | "disablePast" | "disableFuture" | "maxDate" | "shouldDisableDate" | "leftArrowIcon" | "rightArrowIcon" | "renderDay" | "allowKeyboardControl"'.
Type '"innerRef"' is not assignable to type '"date" | "classes" | "onChange" | "theme" | "utils" | "minDate" | "disablePast" | "disableFuture" | "maxDate" | "shouldDisableDate" | "leftArrowIcon" | "rightArrowIcon" | "renderDay" | "allowKeyboardControl"'.
ERROR in node_modules/material-ui-pickers/DateTimePicker/components/DateTimePickerHeader.d.ts(18,82):
TS2344: Type '"date" | "classes" | "innerRef" | "ampm" | "openView" | "meridiemMode" | "onOpenViewChange" | "setMeridiemMode"' does not satisfy the constraint '"date" | "classes" | "utils" | "ampm" | "openView" | "meridiemMode" | "onOpenViewChange" | "setMeridiemMode"'.
Type '"innerRef"' is not assignable to type '"date" | "classes" | "utils" | "ampm" | "openView" | "meridiemMode" | "onOpenViewChange" | "setMeridiemMode"'.
ERROR in node_modules/material-ui-pickers/TimePicker/TimePicker.d.ts(45,72):
TS2344: Type '"date" | "seconds" | "classes" | "onChange" | "innerRef" | "theme" | "ampm"' does not satisfy the constraint '"date" | "seconds" | "classes" | "onChange" | "theme" | "utils" | "ampm"'.
Type '"innerRef"' is not assignable to type '"date" | "seconds" | "classes" | "onChange" | "theme" | "utils" | "ampm"'.
I am getting the same error
Looks like this was probably caused by mui-org/material-ui#14333, which removed the innerRef field from WithStyles.
Works now with 2.2.0
Most helpful comment
Works now with
2.2.0