Vue You may use special comments to disable some warnings.Use // eslint-disable-next-line to ignore

Vue 项目报错
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.

一、报错原因

Eslint的检测机制

二、解决办法

1. 进入build目录中webpack.base.conf.js文件

2. 找到modulerules

3. 找到如下代码在这里插入图片描述

4. 将标注的代码,注释/删除,即可解决报错问题

你可能感兴趣的:(前端,Vue)