You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have used CSS modules to import styles from a third-party CSS (material components for web) and have applied it on my React components including the @CSSModules(styles) decorator.
import styles from '@material/card/dist/mdc.card.css'
import CSSModules from 'react-css-modules';
When I try to build it, the built code still seems to refer to the third-party css component rather than a bundled css which causes Module not found: 'postcss' error when trying to import it in an app.
var _materialCardDistMdcCardCss = require('@material/card/dist/mdc.card.css');
Is there a way to bundle all the required css with the component?
The text was updated successfully, but these errors were encountered:
I have used CSS modules to import styles from a third-party CSS (material components for web) and have applied it on my React components including the
@CSSModules(styles)
decorator.When I try to build it, the built code still seems to refer to the third-party css component rather than a bundled css which causes
Module not found: 'postcss'
error when trying to import it in an app.Is there a way to bundle all the required css with the component?
The text was updated successfully, but these errors were encountered: