Leaf 找不到我的模板 - Xcode 12 Vapor 4

Ale*_*ath 3 vapor leaf xcode12

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

Ale*_*ath 7

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

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