-
Notifications
You must be signed in to change notification settings - Fork 96
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
Cannot read property 'create' of undefined #102
Comments
Did you register an interface ? I don't see one from your example. There is an example of registering an interface here: import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet';
import aphroditeInterface from 'react-with-styles-interface-aphrodite';
...
ThemedStyleSheet.registerInterface(aphroditeInterface);
.. If you don't want to use aphrodite for the interface there are some others listed here. |
We should figure out a way to make a better error message there, regardless. |
Okay, using
It would be better with a better error message Thanks @dmiller9911 |
Glad that got you working. I will be working to add errors for not registering theme/interface later this week unless @ljharb is already working on something. |
Nope, please do! |
Throw appropriate errors if a Style Interface has not been registered or an invalid Style Interface has been registered. Throw an appropriate error if a Theme has not been registered. Resolves: airbnb#102
Throw appropriate errors if a Style Interface has not been registered or an invalid Style Interface has been registered. Throw an appropriate error if a Theme has not been registered. Resolves: airbnb#102
Throw appropriate errors if a Style Interface has not been registered or an invalid Style Interface has been registered. Throw an appropriate error if a Theme has not been registered. Resolves: airbnb#102
I'm getting
Cannot read property 'create' of undefined
and don't know why. I followed the examples and still getting this.If I export like this
it works just fine, but I don't have the styles.
The text was updated successfully, but these errors were encountered: