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

[css-vendor] does not work when server-side rendering #205

Closed
b2whats opened this issue Apr 12, 2016 · 2 comments
Closed

[css-vendor] does not work when server-side rendering #205

b2whats opened this issue Apr 12, 2016 · 2 comments
Labels
bug It went crazy and killed everyone.

Comments

@b2whats
Copy link
Contributor

b2whats commented Apr 12, 2016

https://github.com/jsstyles/css-vendor/blob/master/src/supported-property.js#L40

What will happen if i run 'jss.use(vendorPrefixer());' in server ?

 error given was: TypeError: Cannot read property 'style' of undefined
[1]     at Object.supportedProperty (/home/parallels/WebstormProjects/paulcamper-webapp/node_modules/css-vendor/lib/supported-property.js:54:42)
[1]     at Array.<anonymous> (/home/parallels/WebstormProjects/paulcamper-webapp/node_modules/react-images/node_modules/jss-vendor-prefixer/lib/index.js:32:34)
[1]     at PluginsRegistry.run (/home/parallels/WebstormProjects/paulcamper-webapp/node_modules/jss/lib/PluginsRegistry.js:49:29)
[1]     at StyleSheet.createRule (/home/parallels/WebstormProjects/paulcamper-webapp/node_modules/jss/lib/StyleSheet.js:213:27)
[1]     at new StyleSheet (/home/parallels/WebstormProjects/paulcamper-webapp/node_modules/jss/lib/StyleSheet.js:60:12)
[1]     at Jss.createStyleSheet (/home/parallels/WebstormProjects/paulcamper-webapp/node_modules/jss/lib/Jss.js:78:19)
[1]     at attach (/home/parallels/WebstormProjects/paulcamper-webapp/node_modules/react-jss/lib/index.js:38:30)
[1]     at ref (/home/parallels/WebstormProjects/paulcamper-webapp/node_modules/react-jss/lib/index.js:47:21)
[1]     at StyleSheetWrapper.componentWillMount (/home/parallels/WebstormProjects/paulcamper-webapp/node_modules/react-jss/lib/index.js:71:22)
[1]     at [object Object].ReactCompositeComponentMixin.mountComponent (/home/parallels/WebstormProjects/paulcamper-webapp/node_modules/react/lib/ReactCompositeComponent.js:210:12)

@kof
Copy link
Member

kof commented Apr 13, 2016

oh thats a bug, nothing should happen at all

kof added a commit to cssinjs/css-vendor that referenced this issue Apr 13, 2016
@kof
Copy link
Member

kof commented Apr 13, 2016

published a new version, try it out, let me know if it doesn't work.

@kof kof closed this as completed Apr 13, 2016
@kof kof added the bug It went crazy and killed everyone. label Apr 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It went crazy and killed everyone.
Projects
None yet
Development

No branches or pull requests

2 participants