Skip to main content
Question

Can we use css modules?


Saifylis

Here is the code of my Button.module.css file:

.Button {
    font: inherit;
    font-weight: bold;
}

.Button:disabled {
    color: #ccc;
    cursor: not-allowed;
}

However this is the error I get when importing it into a file as import classes from './Button.module.css':

Cannot find module ‘./Button.module.css’. Did you mean to set the ‘moduleResolution’ option to ‘node’, or to add aliases to the ‘paths’ option?

What am I not understanding here? What’s wrong?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings