vue 项目,正常开发,突然报错如下:

Mixed spaces and tabs  no-mixed-spaces-and-tabs 报错分析

 

 问题原因:

大多数代码约定要求使用空格或 tab 进行缩进。因此,一行代码同时混有 tab 缩进和空格缩进,通常是错误的;

索嘎~~~找出问题如下;

Mixed spaces and tabs  no-mixed-spaces-and-tabs 报错分析

 

 解决办法:

删除报错地方的空格,再进行编译,成功通过。

相关文章: