Shopify / theme-check

The Ultimate Shopify Theme Linter
Other
333 stars 96 forks source link

Variables from other files are not recognized #739

Open AldiNFitrah opened 11 months ago

AldiNFitrah commented 11 months ago

Hi, I'm new to shopify app development. I want to validate a theme but I got so many errors stating that my variables are undefined.

Bug Description

I declared some variables in file A. Then, in file B, I render file A, and use those variables afterwards. But in theme check, it says that the variables are undefined.

Expected

Theme check should recognize those variables and does not mark them as offenses.

Actual

The variables are undefined according to theme check.

Screenshot

image

Debugging information

Additional context

I am not sure if I installed the tools correctly, but here's what I ran:

sudo apt install ruby-full
yarn global add @shopify/cli @shopify/theme
gem install bundler
shopify theme check