编程知识 cdmana.com

A collection of Vue problems

1. vue Report errors : error ‘xxx‘ is defined but never used no-unused-vars

Error reason because vue Project selected eslint Calibration specifications -> Defines a variable , But it's not used ,eslint The norm is either not defining , If you define it, you have to use it .

resolvent :

stay package.json Add the following code to the file ( Save and restart the project !!!)

    "rules": {
        "no-unused-vars":"off",
    },

 

版权声明
本文为[lang13002]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201225141936464l.html

Scroll to Top