CSS Modules don't work
See original GitHub issueI try to use css modules to style my components but the css is override by Material-UI css.
I even download the example by: https://codesandbox.io/s/m4j01r75wx (reported here https://material-ui-next.com/guides/interoperability/#css-modules and here https://material-ui-next.com/customization/css-in-js/#css-injection-order) but when i run npm install
i got back npm WARN css-modules@1.0.0 No repository field. npm WARN css-modules@1.0.0 No license field.
and when I run npm start
the Button are default styled.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
CSS modules not working for react version 16.6.0
Not working with React 17.0.1. The only way to make it work is Changing to UpperCase all the css classes in the css...
Read more >[Bug] Doesn't work with CSS modules #29 - GitHub
Describe the bug. I'm currently using both global CSSes and CSS modules, and can't replace my custom webpack config with this addon.
Read more >How to configure CSS and CSS modules in webpack
One of the first thing you need to configure in your webpack project is CSS. CSS is so fundamental to a web app...
Read more >style-loader - webpack
Automatically injects styles into the DOM using one <style></style> . ... Source maps do not work. ... import styles from "./styles.css"; const divElement...
Read more >How to configure CSS Modules for webpack - LogRocket Blog
Plus, you don't need to come up with different selector names, giving you complete ... In order to work with CSS Modules, we...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Damix48 Thanks for the feedback! I’m on it.
Fixed. I had to follow https://parceljs.org/transforms.html#postcss