You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting Error as - TypeError: __WEBPACK_IMPORTED_MODULE_13_clsx___default(...) is not a function. Since installed material-ui-pickers with redux-form
#923
Closed
storesbuzz opened this issue
Feb 18, 2019
· 1 comment
I am getting an error as - TypeError: __WEBPACK_IMPORTED_MODULE_13_clsx___default(...) is not a function. Since material-ui-pickers installed.
I am using it with redux-form and error as below.
TypeError: __WEBPACK_IMPORTED_MODULE_13_clsx___default(...) is not a function
ModalDialog
E:/ProjectX/App/ClientApp/node_modules/material-ui-pickers/dist/material-ui-pickers.esm.js:719
716 | role: "dialog",
717 | onClose: onDismiss,
718 | classes: {
I am getting an error as - TypeError: __WEBPACK_IMPORTED_MODULE_13_clsx___default(...) is not a function. Since material-ui-pickers installed.
I am using it with redux-form and error as below.
TypeError: __WEBPACK_IMPORTED_MODULE_13_clsx___default(...) is not a function
ModalDialog
E:/ProjectX/App/ClientApp/node_modules/material-ui-pickers/dist/material-ui-pickers.esm.js:719
716 | role: "dialog",
717 | onClose: onDismiss,
718 | classes: {
Environment
My Code
`export const renderDateField = props => {
const {
timezone,
dispatch,
label,
input: { onChange, value },
meta: { touched, invalid, error },
...custom
} = props;
const valueWithTimeZone = new Date();
//const valueWithTimeZone = momentTz.tz(value, timezone)
return (
<DateTimePicker
// className=""
// error={touched && invalid}
// helperText={touched && error}
margin="normal"
value={valueWithTimeZone}
onChange={onChange}
// fullWidth
// variant={variantType}
// {...input}
{...custom}
/>
);
};`
<Field name="date" type="date" component={renderDateField} validate={[requiredVald]} />
Steps to reproduce
Expected behavior
Not working at present
Actual behavior
Should load Date Picker
The text was updated successfully, but these errors were encountered: