Vue项目问题-TypeError: this.getOptions is not a function

TypeError: this.getOptions is not a function

今天用webpack打包项目,安装了less-loader模块之后报错,如下图:
Vue项目问题-TypeError: this.getOptions is not a function
原因: less-loader安装的版本过高


解决方案: 1.npm uninstall less-loader
2.npm install less-loader@5.0.0

 

转自:https://blog.csdn.net/qq_42430948/article/details/113552673

上一篇:成功解决return tf.nn.softmax(x, axis=axis) TypeError: softmax() got an unexpected keyword argument '


下一篇:TypeError: this.getOptions is not a function