-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Importing a CSS Module returns an empty object. #941
Comments
Does it work if you remove {
"modules": true,
"plugins": {
"autoprefixer": {
"grid": true
}
}
} |
It worked after making a The documentation states that you can use one of three formats.
|
Ran into this, was really frustrating till I realized I needed to clear the cache. |
delete the .cache directory. it will work |
for me this is not working. I tripple checked that I have a .postcssrc file with modules: true and deleted the cache. The console shows an empty object. Furthermore, if I enable modules, then normal css import in html do not work anymore? |
thank you, now the object is not empty anymore! |
Choose one: is this a 🐛 bug report or 🙋 feature request?
🐛 bug report
🎛 Configuration (.babelrc, package.json, cli command)
package.json
postcss.config.js
🤔 Expected Behavior
Both development and production builds logging an object with prefixed css class.
😯 Current Behavior
Both development and production builds are logging an empty object (
{}
) into the console.💁 Possible Solution
🤷
🔦 Context
I'm just trying to add CSS modules into my app based on information from your documentation.
💻 Code Sample
My index.tsx script requires a css module.
index.css
🌍 Your Environment
The text was updated successfully, but these errors were encountered: