gerhat / material-ui-formik-components

Formik ready material ui components
MIT License
85 stars 13 forks source link

@material-ui/pickers is not optional #25

Closed CyanoFresh closed 4 years ago

CyanoFresh commented 4 years ago

Hello. I don't use @material-ui/pickers and any pickers but cannot use your lib without this extra dependency

Failed to compile.

./node_modules/material-ui-formik-components/DatePicker/DatePicker.js
Module not found: Can't resolve '@material-ui/pickers' in 'D:\JS\poemarket\frontend\node_modules\material-ui-formik-components\DatePicker'

same for the material-ui-chip-input

gerhat commented 4 years ago

Hello @CyanoFresh.

Make your imports this way:

import { TextField } from 'material-ui-formik-components/TextField'
import { Select } from 'material-ui-formik-components/Select'

instead of

import { TextField, Select } from 'material-ui-formik-components'
CyanoFresh commented 4 years ago

Sorry, I've been importing the first way but now it fixed by itself