Closed tigressbailey closed 2 years ago
You can fix this by defining getLocalIdent
function in config (although, I'm not sure about the return value):
cssLoaderOptions: {
modules: {
getLocalIdent: (_context, _localIdentName, _localName, _options) => "",
},
lessVarsFilePath: './styles/variable.less',
// ...
}
I got it working with this config:
cssLoaderOptions: {
modules: {
getLocalIdent: (_context, _localIdentName, localName) => localName,
},
lessVarsFilePath: './styles/variable.less',
// ...
}
After updated to Next.js 12
import styles from './Container.module.less'
will report an error:Config is: