今天写项目的时候需要用到less,然后安装了less和less-loader,但是之后在写router下的index文件时报错:

TypeError: this.getOptions is not a function

image.png
查询后发现时less-loader版本安装过高。
解决办法:
第一步: npm uninstall less-loader
第二步: npm install less-loader@6.0.0

参考:
https://blog.csdn.net/qq_4243...


V_Gamer
4 声望0 粉丝