Closed rehman-00001 closed 5 years ago
this is because MuiThemeProvider didn't added it in your react component, but technically, the component itself should handle without provide the theme.
same error..
same here
Created a pull-request with a fix for this. :+1:
Thanks @rehman-00001! Your PR has been merge.
@rehman-00001 @jkslyby I am still having same error
Just installed the package and followed the instructions mentioned in the README. But when launched, it throws the following error:
TypeError: Cannot read property 'prepareStyles' of undefined DateRangePicker.render node_modules/material-ui-datetime-range-picker/DatePicker/DateRangePicker.js:483 480 | utils = _props.utils, 481 | other = _objectWithoutProperties(_props, ['DateTimeFormat', 'autoOk', 'autoOpenField', 'blockedDateTimeRanges', 'calendarDateWidth', 'calendarTimeWidth', 'cancelLabel', 'className', 'container', 'dayButtonSize', 'dialogContainerStyle', 'end', 'endLabel', 'endLabelDate', 'endLabelTime', 'firstDayOfWeek', 'formatDisplay', 'layout', 'locale', 'mode', 'okLabel', 'onDismiss', 'onFocus', 'onShow', 'onClick', 'showCalendarDate', 'showCalendarStatus', 'start', 'startLabel', 'startLabelDate', 'startLabelTime', 'style', 'textFieldStyle', 'utils']); 482 |