【转载】Webpack 构建Vue 项目引入时出现 “'xxx' is defined but never used” 提示的解决方法

转自:https://blog.csdn.net/weixin_42425970/article/details/102870549
问题产生原因是因为 xxx 定义了,但并未使用到,若要忽略该提示,需创建 “ .eslintrc.js” 文件,之后加入如下内容:

{
    rules:{
        'no-unused-vars' : 'off'
    }
}
点赞

发表回复

电子邮件地址不会被公开。必填项已用 * 标注