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
I'm trying to run the examples. I'm importing the lib like this:
import { ValidatorForm } from 'react-form-validator-core'
import { TextValidator } from 'react-material-ui-form-validator'
and using like this:
<ValidatorForm
ref='form'
onSubmit={this.handleSubmit}
onError={errors => console.log(errors)}
className={css.form}>
<div className={css.inputContainer}>
<TextValidator
floatingLabelText='Email'
onChange={this.handleChange}
name='email'
value={formData.email}
placeholder='Enter your email'
validators={['required', 'isEmail']}
errorMessages={['this field is required', 'email is not valid']}
/>
</div>
<div>
<TextValidator
floatingLabelText='Email'
onChange={this.handleChange}
name='email'
value={formData.email}
placeholder='Enter your email'
validators={['required', 'isEmail']}
errorMessages={['this field is required', 'email is not valid']}
/>
</div>
<div className={css.actions}>
<a href=''>Forgot password?</a>
<Button color='primary' type='submit' raised>Login</Button>
</div>
</ValidatorForm>
I'm getting error messages like:
Module not found: Error: Can't resolve 'material-ui/SelectField' in 'C:\Users\Pietro Coelho\Desktop\matchat\matchat-app\node_modules\react-material-ui-form-validator\lib'
material-ui version: ^1.0.0-beta.30
The text was updated successfully, but these errors were encountered:
I'm trying to run the examples. I'm importing the lib like this:
and using like this:
I'm getting error messages like:
Module not found: Error: Can't resolve 'material-ui/SelectField' in 'C:\Users\Pietro Coelho\Desktop\matchat\matchat-app\node_modules\react-material-ui-form-validator\lib'
material-ui version: ^1.0.0-beta.30
The text was updated successfully, but these errors were encountered: