webpack.config.js
{
test: /\.scss$/,
use: [
"style-loader",
{
loader: "typings-for-css-modules-loader",
options: {modules: true,nameExport: true,camcelCase: true,sass: true}
},
"sass-loader"
]
}
when I run 'npm run dev',error happend. And when I modify the index.scss file,no declare file like 'index.scss.d.ts' to created.
Uncaught Error: Module build failed (from ./node_modules/typings-for-css-modules-loader/lib/index.js):
Error: Cannot find module 'css-loader/locals' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
Can you tell me how to fix it? thank you!