-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax Error in 'schema' - Valid syntax: schema
#16
Comments
Please could you share what the schema looks like in your If the schema in your section file is literally just |
Hello David, It is whole schema, so there is schema tag like the one I wrote, than there is a valid JSON (validated and working) and then there is schema closing tag, something like this
When I remove mycode from the schema tag, everything works. It looks like the notation is not validated as a proper schema or something |
Hi @tomaszs, sorry for taking so long to get back to you. Just to confirm, is the code block above from If it's the former it would seem my plugin isn't building your files properly but I've not been able to reproduce the issue. Would you be able to share a repo with the bare minimum required to replicate this issue? As for your Theme Check error, it looks like Theme Check doesn't allow you to disable |
Hello David, It i from src file sorry. Missed that you wanted it from dist. |
My webpack config looks like this:
Inside schema folder I have put mycode.js file that looks like this:
And i use it in a section located in sections folder that way:
{% schema 'mycode' %}
But I get error:
Syntax Error in 'schema' - Valid syntax: schema
And:
I have tried adding to mysection this:
{% comment %}theme-check-disable ValidSchema,SyntaxError{% endcomment %}
And to my package.json file this:
theme-check --exclude-category liquid
But it does not work. How to make it work?
The text was updated successfully, but these errors were encountered: