Error with using less and less-loader in nuxt

I installed less and less-loader with yarn. When I use <style lang="less" scoped> in /pages/index.vue … Read more Error with using less and less-loader in nuxt

I installed less and less-loader with yarn. When I use <style lang="less" scoped> in /pages/index.vue got this error

nuxt(^2.15.8)
less(^4.1.1)
less-loader(^10.0.1)

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


Categories: NewsTags: , ,

Tags: , ,


Leave a Reply

Your email address will not be published. Required fields are marked *