-
Notifications
You must be signed in to change notification settings - Fork 206
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
className always empty #21
Comments
I have the same issue and is related on how webpack is treating flexboxgrid. It should transform it into a css module. |
After update version form 0.9.4 to 0.9.5, all class name always empty. |
I am using Meteor with React and I have the same issue, classnames are always empty since installing 0.9.5. |
@roylee0704 After fighting through webpack configs for 3 hours, I just now encountered... the same issue. :( |
The problem is that this library depends on treating flexboxgrid dependency as a css-module. So you need to process it as css-module with webpack.
|
@leandroz Thanks for the heads up!! Do you know the webpack code that works? |
Same issue with me.
prints empty object |
I am using https://github.com/davezuko/react-redux-starter-kit Leandro Zubrezki
|
Thanks @leandroz for pointing this out. Adding ?modules to the loader fixed it for me: {
test: /\.css/,
loader: "style!css?modules"
}, |
Do you know how I would add that using meteor webpack and their webpack.json file? Is webpack.json only a thing with the meteor webpack page or is that a pretty standard thing? Most examples I have seen use a webpack.js. My current webpack.json looks like this, and I can't add that block to my webpack.json file because of the regex.
|
@leandroz and @Marmelatze , thanks for pointing out the solution! Yes you do need to add Anyway do you guys have any ideas on how to prevent this so that I can add that up in future release? |
there's some way to print to console a warning if it's not processed as a CSS module |
@rkmax that's awesome! Do you mind helping on this? :) |
I'm pretty new with webpack but I'll try figure out how to do it |
Sure @rkmax, I really appreciate that. 👍 Meanwhile, I have added a note to reference this issue on README, thanks @silvenon for the help by adding the section to README: basic-webpack-configuration. That's really nice. :) I hope that's sufficient, but if it is still confusing, let me know and I will try to enhance it. |
@leandroz I was using the same boilerplate. And made it work the same way you did. Thanks anyway :) |
Don't know why but code on
|
Ok, i really can't get this to work, here is my loaders config, seems to be correct to me, but i have the same issue with no class names?
|
Good day @gazzer82! :) Are you using any specific boilerplate? Do you mind to paste the entire webpack config here? :) |
I am using the react incubator, could it work?, no webpack… |
Always I'm getting class Name empty so the layout doesn't work. any advice?. please ask me for further info is need, because I'm new with React I dont know which info share
I'm very curious because I have a simple component. I want the text Hello from here appear in the left and the form on right side
The text was updated successfully, but these errors were encountered: