-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
TypeError: Cannot read property 'CSS' of undefined #2119
Comments
@liddellj Good catch. This line https://github.com/callemall/material-ui/blob/master/src/styles/auto-prefix.js#L13 is not working. |
Is there a temporary fix we can add into the source code right now until the next release is up by any chance? |
This is an issue from using node v5.0.0. This went away for me when I switched to 4.2.2, so use 4.2.2 with nvm until they release the fix. |
My build's using 4.1.1 and my local machine has 4.2.2 installed, so @poojareddyintuit I'm not sure that I can say the same for myself.. |
I changed to node 4.2.2 and I am still having the same problem. Reading rofrischmann/inline-style-prefixer they suggest assigning a custom UA so I also tried changing line https://github.com/callemall/material-ui/blob/master/src/styles/auto-prefix.js#L13 to userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36'; This also works, however I see a lot of warning messages doing this. |
I got the same error while trying to do server side rendering. Using node v4.2.2 and material-ui v0.13.1 does seem to fix it for now. |
@justinmc Rolling back to the 0.13.1 package has fixed things for me as well for now. Many thanks! |
@yoavgurevich @justinmc Dependencies : https://github.com/Sutat/T411_SeedWarning/blob/ui/bug/css/package.json This can be my bad because I have this warning :
|
#2172 is supposed to address this issue. Three improvements could still be made:
|
Between 0.13.1 and 0.13.2 something changed that breaks my tests (which are using
ReactTestUtils.renderIntoDocument
) with the error TypeError: Cannot read property 'CSS' of undefinedI'm using jsdom 6.5.1, mocha 2.3.3 and React 0.14.2. Stack trace as follows:
The text was updated successfully, but these errors were encountered: