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

Incorrectly configured context #3

Closed
dchambers opened this issue Nov 18, 2015 · 2 comments
Closed

Incorrectly configured context #3

dchambers opened this issue Nov 18, 2015 · 2 comments

Comments

@dchambers
Copy link

Firstly, thanks so much for the making the material UI components available to Redux and Cerebral users 👍 So far, I've been able to use <Row> and <Column>, but when I try to use <Select> I get this error:

input.js:44 Uncaught TypeError: Cannot read property 'secondaryColor' of undefined

This is happening because this.context.componentStyle is defined, but set to undefined. Is there something I'm meant to do so the context is correctly set up, or is the problem merely due to the fact that I'm not using either Redux or Cerebral yet and am only building static components at this point — Thinking in React style?

@garth
Copy link
Owner

garth commented Nov 18, 2015

It sounds like you haven't setup the context, not all components (eg Row, Col) need it so they will work without.

Checkout the getting started page for info on how to setup your app: http://garth.github.io/material-components/#/gettingStarted

@dchambers
Copy link
Author

Oops, 'Getting Started' guide! Right, good idea that :-)

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

2 participants