运行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.

 

 

原因:

由于vue对语法的限制过于严格,所以运行时会报错

解决办法:

进入项目中的build目录,找到webpack.base.conf.js文件,注释或删除eslint规则

 

 

 

posted @ 2021-10-09 11:04  最初的样子  阅读(1474)  评论(0编辑  收藏  举报