【问题标题】:Leaf cannot find my template - Xcode 12 Vapor 4Leaf 找不到我的模板 - Xcode 12 Vapor 4
【发布时间】:2020-09-27 23:38:58
【问题描述】:

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

【问题讨论】:

    标签: vapor xcode12 leaf


    【解决方案1】:

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

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

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-12-04
        • 2018-08-05
        • 2020-11-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-06-16
        • 1970-01-01
        相关资源
        最近更新 更多