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
- Swift Timer doesn't work on Linux. Works on macOS
- Streaming multiple payloads through a response on swift Vapor 4
- Is it possible to create a WebServer on iOS which is written in C++
- Detect type of vapor worker at runtime
- Does setting a .unique(on:) constraint affect the uniqueness of the .id in fluent/vapor?
- Connect MySQL configuration with CA certificate?
- How to install swift core libraries in production ubuntu server?
- Vapor Fluent OR relationship
- How can I send an image and a JSON together from my Swift client side to my vapor server side?
- How to send multipart form data request with vapor client
- How to remove Duplicate items from siblings filter in Fluent Vapor 4?
- Passkeys and Apple Associated Domains
- Try to use SES Services with Soto SDK and Vapor 4 to send email with my own route
- Swift Vapor Console App - The operation couldn’t be completed. Permission denied
- Local development with the apple-app-site-association file
Related Questions in XCODE12
- XCode 12, double clicking warnings doesn't work
- Why is trying to animate UIView to sync with keyboard popup not working?
- Cannot activate the Run function in Product menu on Xcode 12
- xcode cannot resolve the entered keypath
- Swift - How do I show Data in Swift View from Data.swift file?
- WKWebKit browser not loading website (macOS)
- Xcode(version 13.3.1) doesn’t support iOS 15.6
- React native ios xcode producing corrupt archives
- Xcode 12 broke multiline guard indentation in swift?
- How can I copy build settings from one target to another
- Value of type 'UITableView' has no member 'sectionHeaderTopPadding'
- Xcode 12+ Simulator not attaching while running - Error
- Unable to install cocoapods on Catalina
- Unable to create a Build due to CoreData: API Misuse when there's no Core Data in the App, and the app builds for all Simulators
- xcode Firebase Crashlytics Command PhaseScriptExecution failed with a nonzero exit code
Related Questions in LEAF
- How to get the scipy dendrogram leaf coordinates?
- Vapor(4.77) Leaf(4.2.4) 101: Unable to render a child leaf within its parent leaf (template)
- Unable to Retrieve Country Information When User Selects a Country on the Map
- Route for Controller with Leaf PHP
- How to add a class to the body tag in a Leaf base template
- MULTI level dict: Return reference instead of the content
- How do you extend templates in Leaf using the #extend and #export tags in leaf?
- How to set max_depth and max_leaves in Python XGboost
- Vapor / Leaf | Pass DB-Data to Leaf-View throws a FatalError (superEncoder)
- Updating multiples files with Vapor properly
- How to update a part of torch.nn.Parameter
- How to read only first leaf of xml attribute
- React Leaflet : ugly Warning: Each child in a list should have a unique "key" prop
- How to output leaf in pandas dataframe from XGBoost classifier
- How to read html files on Vapor with Leaf when not using the tau version?
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 # Hahtags
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.