【记录解决遇到的问题】ERROR Failed to compile with 1 error
遇到问题:
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"
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐



所有评论(0)