Shopify / theme-check

The Ultimate Shopify Theme Linter
Other
337 stars 95 forks source link

`MissingTemplate`: Snippet but it's there? #536

Closed josefarrugia closed 2 years ago

josefarrugia commented 2 years ago

Hello there,

I have noticed that several of my snippet files are being identified as a "Missing template" when using {% render 'snippet-file' %} when in fact they are located in the snippets directory.

I am currently using Visual Studio Code with Shopify Liquid 1.2.0 extension along with the Shopify CLI 2.7.3.

Any thoughts?

josefarrugia commented 2 years ago

As I was using a different directory structure for my Shopify theme, I had to move .theme-check.yml to the root directory and specify the root: directory of my Shopify theme directory. Default configuration of this file can be found here.