-
Notifications
You must be signed in to change notification settings - Fork 255
Uncaught TypeError: type.toUpperCase is not a function in ReactDefaultInjection.js:53 #3
Comments
Sorry about that, I published 0.9.1 earlier to fix the issue. Let me know if you still have the bug once you update |
Hi, I've upgraded to v0.9.1 but still have the same issue. |
Hmm ok, will take a look |
Just tested your example and it works fine for me with 0.9.1. In 0.9.1, I changed it so it properly exports |
Hmm, very strange, I have the newest files and I see the changes in index.js where you changed it to Card: Card.default, but still the same error. I will try it on a clean project without any other packages and see if I can reproduce it and upload it to a public git repo so you can test it.. |
Oh I see the error.
React-mdl is a set of multiple components, therefore you have to get the one you need. Otherwise you can do this:
But the first example in your initial post should work fine. |
It works! I actually did try that as you can see in my initial question, but then it probably didn't work because of the bug you fixed in 0.9.1. Thanks |
Exactly :) |
I'm trying react-mdl, but I get a error message in the console on some components like Card and Footer. For example, this is my class:
The MDL components are working fine when using MDL directly with div classes, but not with the react-mdl components.
I don't know what I'm doing wrong, I'm using these versions:
UPDATE: Just found that importing the source file directly fixes the problem, but importing it from the npm lib does not work..
The text was updated successfully, but these errors were encountered: