vue安装了stylus后,重启项目,终端报错 Syntax Error: TypeError: this.getOptions is not a function, 意思是有语法错误。。。
原因
安装stylus报错可能是安装的版本过高,进行降级
解决方案
1.先卸载当前版本
npm uninstall stylus-loader
2.安装低版本
npm i stylus-loader@3.0.2 -S
总结
这里, Syntax Error: TypeError: this.getOptions is not a function 这种语法报错提示,一般都是版本问题