Closed diegovogel closed 9 months ago
Just thought of this but I'm pretty sure Ruby was also upgraded when I upgraded Shopify CLI. That might explain why I'm now getting these warnings.
I'm also getting this. I ran brew update
and brew upgrade
to update everything and am now facing the same errors on an M1
/opt/homebrew/Cellar/shopify-cli/3.54.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify:9: warning: observer was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add observer to your Gemfile or gemspec.
/opt/homebrew/Cellar/shopify-cli/3.54.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify:9: warning: webrick was loaded from the standard library, but is not part of the default gems since Ruby 3.0.0. Add webrick to your Gemfile or gemspec.
/opt/homebrew/Cellar/shopify-cli/3.54.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify:9: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
[Note] You cannot use gems with Shopify CLI.
[LoadError] cannot load such file -- readline.bundle
They are disabled.
Please don't modify the CLI locally.
If you would like to contribute to the CLI project, please refer to
https://github.com/Shopify/shopify-cli/blob/main/.github/CONTRIBUTING.md
I'm also getting this. I ran
brew update
andbrew upgrade
to update everything and am now facing the same errors on an M1/opt/homebrew/Cellar/shopify-cli/3.54.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify:9: warning: observer was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add observer to your Gemfile or gemspec. /opt/homebrew/Cellar/shopify-cli/3.54.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify:9: warning: webrick was loaded from the standard library, but is not part of the default gems since Ruby 3.0.0. Add webrick to your Gemfile or gemspec. /opt/homebrew/Cellar/shopify-cli/3.54.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify:9: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec. [Note] You cannot use gems with Shopify CLI. [LoadError] cannot load such file -- readline.bundle They are disabled. Please don't modify the CLI locally. If you would like to contribute to the CLI project, please refer to https://github.com/Shopify/shopify-cli/blob/main/.github/CONTRIBUTING.md
I'm experiencing the same issue. The main problem is I'm not getting hot reload when I update a theme file. Instead, I have to pull down and restart the theme using shopify theme dev
.
Has anyone else faced this problem? If yes, how did you fix it? Thanks.
@Meelicia hot reload is still working for me, but I'm also not getting the LoadError and message about modifying CLI locally that you and @JamiesonRoberts are getting. I'm only getting the three warnings about deprecated gems.
@diegovogel Shopify rolled out a version of the CLI that used JS instead of Ruby for theme commands, but it had several bugs in it. They reverted the change to fix breaking issues.
I imagine the warnings will be temporary until they fix the issues with the JS implementation.
Thanks @jonathanmoore. I'll close this and ignore the warnings then.
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
Run
shopify theme dev
with no warnings.Actual behavior
While troubleshooting a different issue, I updated to the latest version of Shopify CLI. Now whenever I run
shopify theme dev
I get warnings about some of Shopify CLI's dependencies (at least I think that's what they are). I'm not sure if this is a bug or something wrong with my setup.Verbose output
Reproduction steps
shopify theme dev --store <store-handle>
Operating System
macOS 14.2.1
Shopify CLI version (check your project's
package.json
if you're not sure)3.54.0
Shell
zsh
Node version (run
node -v
if you're not sure)v18.0.0
What language and version are you using in your application?
I'm running Ruby 3.3.0 globally in macOS, is that what you need?