在使用react时按需引入antd时,报了下面这个错:

ValidationError: Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
options has an unknown property ‘source’. These properties are valid:
object { lessOptions?, prependData?, appendData?, sourceMap? }

在网上查找到一个解决方法:
object { lessOptions?, prependData?, appendData?, sourceMap? }
先移除项目中的less-loader,然后安装一个5.0.0的
解决问题的网址:https://github.com/ant-design/ant-design/issues/23624

相关文章:

  • 2021-09-22
  • 2021-09-10
  • 2021-08-15
  • 2022-12-23
  • 2021-05-15
  • 2021-05-17
  • 2022-01-07
  • 2021-12-30
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2021-06-01
  • 2021-07-19
  • 2022-12-23
  • 2021-08-09
  • 2021-04-30
相关资源
相似解决方案