Eslint less reported an error, but Baidu and Google could not find the answer.

as you can see in the picture, it indicates that there is something wrong with the symbol, but it doesn"t say what the problem is, it can be said to be very broken.

[less] semi-colon expected
[less] {expected
[less] at-rule or selector expected

Jun.21,2021

configuration in setting.json

"files.associations": {
    "*.vue": "vue"
},

<style type="text/less" lang="less" scoped>
</style>

check whether the colon is in English, Chinese will report an error


solution, open vscode settings, find USER Setting's json configuration file, recognize vue as html and delete

.
Menu