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

Importing SELECT causes error #368

Closed
tslater opened this issue Aug 3, 2016 · 5 comments
Closed

Importing SELECT causes error #368

tslater opened this issue Aug 3, 2016 · 5 comments
Labels

Comments

@tslater
Copy link
Contributor

tslater commented Aug 3, 2016

I'm using es6 and webpack.
When I import Select like so:

import {Select} from 'stardust';

I get this error:

warning.js:44Warning: Invalid argument supplied to oneOf, expected an instance of array.

It seems to be on line 133 of Label.js:

  /** Color of the label. */
  color: _react.PropTypes.oneOf(Label._meta.props.colors),
@tslater
Copy link
Contributor Author

tslater commented Aug 3, 2016

Filter.js is my own class where I import SELECT

screen shot 2016-08-03 at 5 57 25 pm

@levithomason
Copy link
Member

Yep, that is a typo bug. PR and release coming, hold tight.

@levithomason
Copy link
Member

Though, this warning shouldn't stop the app from running. It should only be logged as an error by React propTypes.

@levithomason
Copy link
Member

Fixed and released in v0.27.6, thanks for the detailed report.

@tslater
Copy link
Contributor Author

tslater commented Aug 4, 2016

No problem. That was a fast response! I did fail to mention that things were working just fine...sorry about that!

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

No branches or pull requests

2 participants