If cssModules is set to true, modules based SCSS works but lib imports doesn't. if it is set to false modules based SCSS doess NOT work but lib imports works.
Also tried changing order withSass(withCSS({})) to withCSS(withSass({})) that didn't help
Also tried adding style-loader, css-loader, sass-loader inside webpack configs that didn't work too.
Is there a way I can get the both working using some configurations?
If you need further details for this issue just mention me and I will be sharing the required details ASAP.
I am running on a hard deadline or any kind of help will be much appreciated!
Hello!
I am trying to convert a CRA to Next.js. Currently I am facing an issue with styles. As per current structure we have modules based SCSS files.
So what I need is:
react-select
,react-infinite-calendar
,react-multi-carousel
.I have tried a lot of configurations inside next.config.js but that didn't help me.
Here are the package versions I am using:
PS: I've tried
node-sass
&sass
separately and together but that didn't help as well.next.config.js
NOTE:
cssModules
is set totrue
, modules based SCSS works but lib imports doesn't. if it is set tofalse
modules based SCSS doess NOT work but lib imports works.withSass(withCSS({}))
towithCSS(withSass({}))
that didn't helpstyle-loader
,css-loader
,sass-loader
inside webpack configs that didn't work too.Is there a way I can get the both working using some configurations? If you need further details for this issue just mention me and I will be sharing the required details ASAP. I am running on a hard deadline or any kind of help will be much appreciated!
Thanks in advance!
@timneutkens