i’ve updated my packages versions on react project, and styles now not loading.
in code i use styles like this:
import styles from "../WrappersCommon.scss";
...
<div className={styles["main-layout"]}>
in webpack config i have
test: /.(scss)$/,
use: [
{
loader: "css-loader",
options: {
modules: {
localIdentName: "[path][name]__[local]--[hash:base64:5]",
},
},
},
{
loader: "postcss-loader",
options: {
postcssOptions: {
plugins: [postcssPresetEnv()],
},
},
},
"sass-loader",
],
There is no errors in terminal, and i don’t see any styles in app, they are not even loaded in browser:
please help, what is wrong with styles?