I updated from Vapor 3 to 4, and Xcode 11 to 12. Now Leaf cannot find my *.leaf templates. I get a "noTemplateFile" error.
Leaf cannot find my template - Xcode 12 Vapor 4
1.7k Views Asked by AlexMath At
2
There are 2 best solutions below
0
zdravko zdravkin
On
Just modify your schema to be the directory for your Vapor server. Step by step guideline here https://docs.vapor.codes/4.0/xcode/
Related Questions in VAPOR
- Can I verify Data if image using foundation framework only
- Vapor Framework : Configure a postgres connection with SSL
- How to produce a response body with asynchronously created body chunks in Swift Vapor
- Heroku: how to read file?
- Swift Vapor and modules; how to distinguish two overlapping 'type symbols'
- how to build a vapor app from an already existing database?
- Vapor PostgreSQL Error: invalidSQL("ERROR: relation \"pages\" already exists\n")
- How to make requests to connect to third party APIs in Vapor?
- Deploying Vapor with heroku
- Random Alphanumeric String Linux Swift 3
- Vapor 2, One to Many relation
- Why don't I get a HTTP status code from Firebase Server? Swift - Vapor server
- swift build use of unresolved identifier
- Vapor not rendering file through Leaf
- Vapor - Get model from HTML
Related Questions in XCODE12
- Use ViewRouter in SwiftUI Project in Xcode 12
- "Spotlight quit unexpectedly" in MacOS Catalina version 10.15.4, This crash happening after I have installed Xcode 12
- Alamofire carthage update not working for Xcode 12 Simulator
- replace Tabbar with toolbar in SwiiftUI 2.0
- Since iOS 14, my app does not display images only when with the debugger or a device with iOS 13. Also, the keyboard won't show all keys
- Since Xcode 12 uitextfields of existing project has black background
- Crash in the execution of a queue glmtl.telemetry
- How to debug Widget Xcode 12
- Array cannot be inferred Error in Xcode 12 with Swift 5
- How should I use AudioFileStreamOpen Xcode 12
- Why the Resources direrctory is not visible on my project navigatior
- iOS Simulator is Crashing on startup
- SwiftUI HStack within a scroll view not showing images correctly
- Where is debug view hierarchy button in Xcode 12
- Xcode 12 - Download more simulators runtime is empty
Related Questions in LEAF
- Vapor 4 leaf - failed to resolve dependency
- Vapor(4.77) Leaf(4.2.4) 101: Unable to render a child leaf within its parent leaf (template)
- Swift Vapor 4 Leaf Image not displayed in view on run
- Vapor `Public` directory inside docker image is not exposed
- Compute number of leaves in binary tree recursively
- Reload saved data in editor.js using Vapor 3 backend and Leaf page
- Leaf cannot find my template - Xcode 12 Vapor 4
- route not found even if it exist php leaf framework
- Variable Leaf sub-templates
- How do you extend templates in Leaf using the #extend and #export tags in leaf?
- MULTI level dict: Return reference instead of the content
- React Leaflet : ugly Warning: Each child in a list should have a unique "key" prop
- Trouble importing partials into a Leaf template
- Vapor Swift - Compare two strings
- Swift Vapor - 'Cannot invoke 'add' with an argument list of type...' errors in configure.swift
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I found the answer here: https://theswiftdev.com/how-to-create-your-first-website-using-vapor-4-and-leaf/
The trick was to add a "Custom Working Directory" in the scheme's options. I added my project's root directory and it worked.