[ESLint syntax error] error 'Vue' is defined but never used no-unused-vars

【Error report】

error ‘Vue‘ is defined but never used no-unused-vars

【reason】 

If variables are defined in the vue scaffolding but are not used, an error will be reported when running.

【Solution】

(1) Add "no-unused-vars": "off" to the rules configuration item of package.json , as shown below

 (2) Then re-run npm run serve in the terminal

Guess you like

Origin blog.csdn.net/qq_54639969/article/details/131949925