Open iamsmartloser opened 4 years ago
Right:xxx.module.less
@shx996 This is not working in my case. Now I get an error
`ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
@unsafeFunction I have the same problem. What should i do?
@unsafeFunction Check out https://github.com/arackaf/customize-cra/issues/226
The same error occurs when I use Ant Design.
@iamsmartloser addLessLoader()
has been changed, so you should add lessOption
key in int. Try like below:
// ...
addLessLoader({
lessOptions: {
javascriptEnabled: true,
modifyVars: { '@primary-color': '#A80000' },
},
}),
// ...
my code is as follows config-overrides.js
There's no problem when it's used like this
import './index.less';
I want to use a. Less file like this
When I print like this
console.log('styles:',styles)
the result is {}When I change the .less file to the .module.less file, an error will be reported again
why?