Skip to content
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

Variables from other files are not recognized #739

Open
AldiNFitrah opened this issue Jul 28, 2023 · 0 comments
Open

Variables from other files are not recognized #739

AldiNFitrah opened this issue Jul 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@AldiNFitrah
Copy link

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

  • OS [e.g. Windows, Mac, Linux]: Linux
  • Version (output of theme-check --version in a terminal): 1.15.0

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
@AldiNFitrah AldiNFitrah added the bug Something isn't working label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant