We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hi im using ssr and want to use babel-plugin-cs-modules transform to display my css my code is : webpackconfig.js:
module: { rules: [ { test:/\.css$/, use: [ "style-loader", { loader: "css-loader", options: { modules: true, context: "/", localIdentName: '[name]__[local]___[hash:base64:5]' } } ] } ], },
babelrc:
"plugins": [ "transform-decorators-legacy", "transform-object-rest-spread", [ "css-modules-transform", { "generateScopedName": "[name]__[local]___[hash:base64:5]", "rootDir": "/", "extensions": [".css"] } ] ]
app.css: div { background-color:#99cc00; padding:10px; } App.js: require('./src/styles/app.css'); css loader version is :
div { background-color:#99cc00; padding:10px; }
require('./src/styles/app.css');
"css-loader": "^2.0.2",
babel-plugin-css-modules-transform version is : "babel-plugin-css-modules-transform": "^1.6.2",
"babel-plugin-css-modules-transform": "^1.6.2",
style loader version: "style-loader": "^1.0.0",
"style-loader": "^1.0.0",
am i doing something wrong or is there a versioning issue?
let me know if you need more information. thanks in advance
The text was updated successfully, but these errors were encountered:
Were you able to solve this?
Sorry, something went wrong.
@simhox are you getting an error like this?
Warning: Prop `className` did not match. Server: "account-page_327l2" Client: "account-page_aqoHO"
Seems like classNames haven't been matching since version 2 and newer (#103)
classNames
No branches or pull requests
hi im using ssr and want to use babel-plugin-cs-modules transform to display my css
my code is :
webpackconfig.js:
babelrc:
app.css:
div { background-color:#99cc00; padding:10px; }
App.js:
require('./src/styles/app.css');
css loader version is :
"css-loader": "^2.0.2",
babel-plugin-css-modules-transform version is :
"babel-plugin-css-modules-transform": "^1.6.2",
style loader version:
"style-loader": "^1.0.0",
am i doing something wrong or is there a versioning issue?
let me know if you need more information. thanks in advance
The text was updated successfully, but these errors were encountered: