使用less语法,运行项目时报错:TypeError: this.getOptions is not a function 原因: less-loader安装的版本过高 解决方案: 卸载重装低版本进行兼容 npm uninstall less-loader npm install less-loader@6.0.0 重新运行 启动成功