cli: [Bug]: theme dev does not work since environment

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Theme

Expected behavior

Hi,

I have upgraded to version 3.41 and renamed to environmnet instead of preset. I now have strange errors related to Ruby that I did not have:

/Users/xxxx/Sites/shopify-prestige/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

ExternalError: Command failed with exit code 1: bundle install
rbenv: version `3.1.0' is not installed (set by /Users/xxxx/Sites/shopify-prestige/node_modules/@shopify/cli-kit/assets/cli-ruby/.ruby-version)

Has dependencies changed?

Actual behavior

It did not work

Stack trace

No response

Reproduction steps

Operating System

OS X

Shopify CLI version (check your project’s package.json if you’re not sure)

3.41.1

Shell

No response

Node version (run node -v if you’re not sure)

No response

What language and version are you using in your application?

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 24 (10 by maintainers)

Most upvoted comments

We are doing some internal refactors to easily migrate commands from Ruby to Node (because most of the theme commands still rely on the CLI 2.x under the hood), and that flag forces to run it the old way.

We are going to release a new version now that disables it by default, as there are still some issues. Sorry for the inconvenience!

Hi @gonzaloriestra . I tried this and can confirm this fixes the issue.

Hi! Could you please try with SHOPIFY_CLI_BUNDLED_THEME_CLI=1 shopify theme dev? We are investigating the issue.

Ah, I’m sorry, I should’ve opened another issue. I just subscribed to this thread in the hope that my error would get resolved by the updates. The error I see is in my second comment here starting with Your user account isn't allowed to install to the system RubyGems..