So, the basic usage of SASS in react is
Install node-sass and import ./mysass.scss in index.js file
I did the same it worked with bootstrap SASS.
I have successfully imported bootstrap.scss in index.js file
import 'bootstrap/scss/bootstrap.scss';
But, now if I try to import mine it did not work.
Let me give you some information about my SASS files.
My style.scss file importing other CSS modules by using
@useinstead of@importin sass.For example
Using -> `@use 'sections/navbar';` Instead of -> `@import 'sections/navbar';`I am also using
@use "sass:map";
Does this @use create the problem?
I have checked the bootstrap.scss file and they are using @import.