I installed less and less-loader with yarn. When I use
<style lang="less" scoped> in /pages/index.vue got this error
Module build failed (from ./node_modules/less-loader/dist/cjs.js): TypeError: this.getOptions is not a function at Object.lessLoader
I removed the node_module file and also package-lock.json file and reinstalled them but I got this error again.
Source: Vue – Stack Overflow