Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't resolve TimePicker, AutoComplete, DatePicker and SelectField #52

Closed
pietrofxq opened this issue Jan 30, 2018 · 0 comments
Closed

Comments

@pietrofxq
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant