Welcome to the Liquify Community

Updated 2 weeks ago

Error " Unknown tag 'schema' " in assets file

At a glance
Hey! I've got a reoccuring error after conversion when importing into Shopify from Github. From the error log I can see the message " Unknown tag 'schema' " in a lot of different assets files.

From what I understand, a schema tag can only appear in the sections folder, so clearly it seems to be a conversion error caused by me having a faulty structure or wrong attribute placement.

Could someone take a look at these and help me out?

Resources:
GitHub permalink to an example line containing the schema error:
https://github.com/JonathanFors/Makebo-2/blob/768765d7fac8e8aa7b1420a41be114dd5ea5d26e/assets/contact.liquid#L13

Webflow read-only:
https://preview.webflow.com/preview/makebo1?utm_medium=preview_link&utm_source=designer&utm_content=makebo1&preview=2e903db79948c9938579805d4b825151&pageId=6735b6f6bd2fccc307bb8fd0&locale=en&workflow=preview

Some example errors:
- [ ] Error: assets/collections.liquid, Validation failed: Liquid syntax error (line 10): Unknown tag 'schema'
- [ ] Error: assets/account_hero.liquid, Validation failed: Liquid syntax error (line 3): Unknown tag 'schema'
- [ ] Error: assets/cart.liquid, Validation failed: Liquid syntax error (line 32): Unknown tag 'schema'
Marked as solution
Hi Jonathan, I had a look and I some of the errors come from the way you assign things, the stucture needs to be assign [var] = [source], you have used assign [var] in [source] and to limit the amount: {% for article in blog.articles limit: 3 %} you dont need to uise the piping | 🙂
View full solution
J
J
m
9 comments
Hey, I saw that you use component variables for some section names. Can you try to remove that variable and set the section name directly? And can you send the Webflow export aswell? :)
Attachment
image.png
There you go! Webflow export.

I'll try without the variable section names. I'm using it to easier apply attributes globally as this theme has a lot of repeating content, do you know if there are any plans to support variable section names?
I just moved the li-section tag from being a component variable to now being set directly on the element, but no change in errors unfortunately.
Hi Jonathan, I had a look and I some of the errors come from the way you assign things, the stucture needs to be assign [var] = [source], you have used assign [var] in [source] and to limit the amount: {% for article in blog.articles limit: 3 %} you dont need to uise the piping | 🙂
@Jonathan Fors
you can limit the tags shown in articles like this: {% for tag in article.tags limit: 1 %}
<div class="blogs_tag"><div li-object="tag.title">{{ tag.title }}</div></div>
{% endfor %}
Thank you for clarifying! This solved it.
Very challenging, but fun, learnign a new language like this
Yeah, once you understand it the whole picture becomes a lot clearer 😊
Add a reply
Sign up and join the conversation on Discord