美文网首页
less-loader报错:this.getOptions is

less-loader报错:this.getOptions is

作者: 踏莎行 | 来源:发表于2021-05-19 09:21 被阅读0次

    今天打包less时报错,


    Snipaste_2021-05-19_09-12-46.png

    原因是less和less-loader版本过高导致的,降低版本即可
    这是我的package.json

      ...
      "dependencies": {
        "core-js": "^2.6.5",
        "vue": "^2.6.10",
        "vue-router": "^3.5.1"
      },
      "devDependencies": {
        "@vue/cli-plugin-babel": "^3.12.0",
        "@vue/cli-plugin-eslint": "^3.12.0",
        "@vue/cli-service": "^3.12.0",
        "@vue/eslint-config-standard": "^4.0.0",
        "babel-eslint": "^10.0.1",
        "eslint": "^5.16.0",
        "eslint-plugin-vue": "^5.0.0",
        "vue-template-compiler": "^2.6.10",
        "less": "^4.0.0",
        "less-loader": "^7.1.0"
      }
      ...
    }
    

    相关文章

      网友评论

          本文标题:less-loader报错:this.getOptions is

          本文链接:https://www.haomeiwen.com/subject/aynujltx.html