Leaf WebPage error

Good morning,

Today I opened my vapor app to continue with the work, and I can’t render the page in Leaf. I did it four days ago and it was everything fine. Yesterday my Xcode update itself and I’m worried that the version is not already compatible. When I try to render the “content” page, embedded in “base.leaf”, I get this error:

[ ERROR ] TemplateKitError.tag:set: Unsupported key type (/Users/…/Resources/Views/index.leaf line: 0 column: 1 range: 1…<871) (TagContext.swift:54)

I don’t know what is the problem, but if I delete get(“content”) and embed(“base”) it works fine.
I hope you could help.
Thank you very much.

@0xtim Can you please help with this when you get a chance? Thank you - much appreciated! :]

Hi @mattiav8 - yep apparently Swift 5 broke something! A fix has been released though so if you update to the latest packages you should be good - run swift package update and then try again!

@0xtim @shogunkaramazov Awesome, thank you very much!

1 Like