今天搭建项目的时候踩了一个小坑

less安装成功后 在引入的时候一直报错

  1. 百度了很多也无果 ,最后才查看了安装的版本后发现了问题所在,less的版本太高导致
  2. 这是报错截图
    vue less 安装报错
    3.这是报错代码
    Module build failed: 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 ‘indentedSyntax’. These properties are valid
    4.这是解决方案
    vue less 安装报错
    5.解决方案代码
    npm install [email protected] -s
    npm install [email protected] -s

就这样完美解决

相关文章:

  • 2022-12-23
  • 2021-06-07
  • 2021-08-13
  • 2022-12-23
  • 2021-06-06
  • 2021-04-23
  • 2021-08-06
  • 2021-05-23
猜你喜欢
  • 2021-10-14
  • 2021-10-26
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
相关资源
相似解决方案