打赏

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了。

posted @ 2015-11-05 23:46  海米傻傻  阅读(781)  评论(0编辑  收藏  举报