Cannot read 属性 of undefined 错误 in jade

Cannot read the property of undefined error in jade

这是我的简单玉脚本。

ul - each user in users li #{user.username} .

我会得到 cannot read the 属性 username of undefined 错误。

在我看来,格式有误,因此无法正确解释脚本,应该更像

ul
  each user in users
    li #{user.username}