Jade报错:Invalid indentation,you can use tabs or spaces but not both问题

现象:通过html生成jade文件之后,更改jade文件时,语句没什么问题的情况下,jade文件编译不通过,报错:Invalid indentation,you can use tabs or spaces but not both。

原因:错误信息上已经写得很清楚了,是因为jade文件里出现了多余的空格导致文件编译不通过。

解决方法:在代码编辑器中设置tab替换空格,就ok了。

原文地址:https://www.cnblogs.com/haimishasha/p/4941259.html