首页 > 解决方案 > Leaf 找不到我的模板 - Xcode 12 Vapor 4

问题描述

我从 Vapor 3 更新到 4,从 Xcode 11 更新到 12。现在 Leaf 找不到我的 *.leaf 模板。我收到“noTemplateFile”错误。

标签: vaporxcode12leaf

解决方案


我在这里找到了答案:https ://theswiftdev.com/how-to-create-your-first-website-using-vapor-4-and-leaf/

诀窍是在方案的选项中添加“自定义工作目录”。我添加了我的项目的根目录并且它有效。


推荐阅读