遇到问题:
ERROR Failed to compile with 1 error 上午10:30:14
[eslint]
C:\Users\Administrator\Desktop\后台管理页面\one-project\src\App.vue
15:8 error 'HelloWorld' is defined but never used no-unused-vars
✖ 1 problem (1 error, 0 warnings)
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
ERROR in [eslint]
C:\Users\Administrator\Desktop\后台管理页面\one-project\src\App.vue
15:8 error 'HelloWorld' is defined but never used no-unused-vars
✖ 1 problem (1 error, 0 warnings)
webpack compiled with 1 error
解决方法:
第一步:选中并打开"vue.config.js"
第二步:输入"lintOnSave:false"来关闭eslint校验
最后:执行命令 "npm run serve"