Shopify / themekit

Shopify theme development command line tool.
https://shopify.dev/tools/theme-kit
MIT License
1.2k stars 375 forks source link

invalid environment [development]: (invalid project directory lstat build: no such file or directory) #787

Closed brantward closed 4 years ago

brantward commented 4 years ago

Describe the bug Getting the following error after running 'theme deploy' invalid environment [development]: (invalid project directory lstat build: no such file or directory)

To Reproduce Steps to reproduce the behavior:

  1. in a new directory, run command theme new --p=[password] --s=[store.myshopify.com]
  2. check to make sure new theme has been uploaded by running command theme get --list --p=[password] --s=[store.myshopify.com]
  3. if theme upload is successful, run command theme deploy
  4. I then see the response; invalid environment [development]: (invalid project directory lstat build: no such file or directory)

Expected behavior Deploy command should be successful.

Environment (please complete the following information):

Additional context For me, theme deploy / theme upload works for any version below v1.0.0

tanema commented 4 years ago

It seems like you are using a directory config somewhere, in your config.yml, flags, env var or global config that points to a directory called build that does not exist in your current project.

brantward commented 4 years ago

@tanema Legend. It was a global variables file. Thanks so much!