3

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

4

2 回答 2

9

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

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

于 2020-09-27T23:38:58.490 回答
2

只需将您的架构修改为您的 Vapor 服务器的目录。分步指南在这里https://docs.vapor.codes/4.0/xcode/

于 2021-07-19T13:32:02.423 回答