cli: [Bug]: Stuck on password page when running `shopify theme dev`

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

After shopify theme dev runs and I land on the password page, I should be able to enter the store password (as set in online store > preferences) and browse the store pages.

Actual behavior

I get stuck on the password page. Entering the correct password will reload the page. Entering the wrong password will reload the page and show me the form error messages.

Update: this issue seems related to the --password flag. It works fine if I authenticate via browser instead of using my Theme Access App password.

Screenshot 2023-06-22 at 8 35 41 am Screenshot 2023-06-22 at 8 37 25 am Screenshot 2023-06-22 at 8 36 59 am Screenshot 2023-06-22 at 8 36 45 am Screenshot 2023-06-22 at 8 36 33 am

Notes:

  • Using Chrome Version 114.0.5735.133 (Official Build) (arm64)
  • Using Vite@4.3.9 with vite-plugin-shopify@2.1.1, although I don’t think this is the issue
  • It was working a few weeks ago, I believe with Shopify CLI up to version 3.46.3
  • Using --password --store and --theme flags

Related issues: https://github.com/Shopify/shopify-cli/pull/1909 https://github.com/Shopify/cli/issues/2186

Verbose output

kenji starter-theme-vite % shopify theme dev --store=<REDACTED> --password=<REDACTED> --theme=123085881453 --path=src --verbose
2023-06-21T22:19:11.336Z: Running command theme dev
  shopify:theme:dev init version: @oclif/core@2.1.4 argv: [ '--store=<REDACTED>', '--password=<REDACTED>', '--theme=123085881453', '--path=src', '--verbose' ] +0ms
2023-06-21T22:19:11.345Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2023-06-21T22:19:11.348Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/ruby -v
  · Working directory: /Users/kenji/Dev/twp/starter-theme-vite

2023-06-21T22:19:11.356Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle -v
  · Working directory: /Users/kenji/Dev/twp/starter-theme-vite

2023-06-21T22:19:11.446Z: Reading the content of file at /opt/homebrew/Cellar/shopify-cli/3.46.5/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/Gemfile...
2023-06-21T22:19:11.447Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle config set --local path /Users/kenji/Library/Caches/shopify-gems-nodejs
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.46.5/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2023-06-21T22:19:11.536Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle config set --local without development:test
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.46.5/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2023-06-21T22:19:11.611Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle install
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.46.5/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2023-06-21T22:19:11.771Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle exec /opt/homebrew/opt/ruby/bin/ruby /opt/homebrew/Cellar/shopify-cli/3.46.5/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify theme token --admin <REDACTED> --sfr <REDACTED>
  · Working directory: /Users/kenji/Dev/twp/starter-theme-vite

╭─ success ────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  Preview your theme                                                          │
│    • http://127.0.0.1:9292                                                   │
│                                                                              │
│  Next steps                                                                  │
│    • Customize your theme at the theme editor                                │
│    • Share your theme preview                                                │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

2023-06-21T22:19:12.365Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/ruby -v
  · Working directory: /Users/kenji/Dev/twp/starter-theme-vite

2023-06-21T22:19:12.373Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle -v
  · Working directory: /Users/kenji/Dev/twp/starter-theme-vite

2023-06-21T22:19:12.450Z: Reading the content of file at /opt/homebrew/Cellar/shopify-cli/3.46.5/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/Gemfile...
2023-06-21T22:19:12.451Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle config set --local path /Users/kenji/Library/Caches/shopify-gems-nodejs
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.46.5/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2023-06-21T22:19:12.527Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle config set --local without development:test
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.46.5/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2023-06-21T22:19:12.603Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle install
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.46.5/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2023-06-21T22:19:12.745Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle exec /opt/homebrew/opt/ruby/bin/ruby /opt/homebrew/Cellar/shopify-cli/3.46.5/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify theme serve /Users/kenji/Dev/twp/starter-theme-vite/src --theme 123085881453 --live-reload hot-reload
  · Working directory: /Users/kenji/Dev/twp/starter-theme-vite

DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes.json with request_id: 115fb584-67e8-4875-b194-c9ae3277319e
* Syncing theme #123085881453 on <REDACTED>.myshopify.com
DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/123085881453/assets.json with request_id: 14306e08-8a04-4e8b-a1a4-163a051a5fe4
DEBUG ignore templates/page.videos-example.json
DEBUG ignore assets/manifest.json
DEBUG ignore config/settings_data.json
DEBUG ignore locales/da.json
DEBUG ignore locales/de.json
DEBUG ignore locales/en.default.json
DEBUG ignore locales/es.json
DEBUG ignore locales/fr.json
DEBUG ignore locales/nl.json
DEBUG ignore locales/pt-BR.json
DEBUG ignore locales/pt-PT.json
DEBUG ignore sections/footer-group.json
DEBUG ignore sections/header-group.json
DEBUG ignore templates/404.json
DEBUG ignore templates/article.json
DEBUG ignore templates/blog.json
DEBUG ignore templates/cart.json
DEBUG ignore templates/collection.json
DEBUG ignore templates/customers/account.json
DEBUG ignore templates/customers/account.orders.json
DEBUG ignore templates/customers/activate_account.json
DEBUG ignore templates/customers/addresses.json
DEBUG ignore templates/customers/login.json
DEBUG ignore templates/customers/order.json
DEBUG ignore templates/customers/register.json
DEBUG ignore templates/customers/reset_password.json
DEBUG ignore templates/index.json
DEBUG ignore templates/list-collections.json
DEBUG ignore templates/page.contact.json
DEBUG ignore templates/page.json
DEBUG ignore templates/page.secondary.json
DEBUG ignore templates/password.json
DEBUG ignore templates/product.json
DEBUG ignore templates/search.json
DEBUG ignore config/settings_data.json
DEBUG ignore assets/manifest.json
                                                                                                                100%
[2023-06-22 08:19:14] INFO  WEBrick 1.7.0
[2023-06-22 08:19:14] INFO  ruby 3.2.2 (2023-03-30) [arm64-darwin22]
[2023-06-22 08:19:14] INFO  WEBrick::HTTPServer#start: pid=11522 port=9292
DEBUG Refreshing preview _secure_session_id cookie
DEBUG Proxying HEAD https://theme-kit-access.shopifyapps.com/cli/sfr/?preview_theme_id=123085881453&_fd=0&pb=0
DEBUG `-> 302 request_id: 80799023-c006-419e-914a-1567ad635f62
DEBUG Proxying GET https://theme-kit-access.shopifyapps.com/cli/sfr/?_fd=0&pb=0
DEBUG `-> 302 request_id: f11d88f0-c2e9-4d9a-bcb3-b63f63d7afa3
DEBUG Proxying GET https://theme-kit-access.shopifyapps.com/cli/sfr/password?_fd=0&_fd=0&pb=0
DEBUG `-> 200 request_id: 5d4dc62d-6a7e-4e6a-a8d0-97f118083508
DEBUG [HotReload] Connected to SSE stream
DEBUG Proxying POST https://theme-kit-access.shopifyapps.com/cli/sfr/password?_fd=0&pb=0
DEBUG `-> 302 request_id: 17523157-d25a-4719-a862-1707047398db
DEBUG Proxying GET https://theme-kit-access.shopifyapps.com/cli/sfr/?_fd=0&pb=0
DEBUG `-> 302 request_id: a77da244-934f-4360-a4c9-b2442dc1c8af
DEBUG Proxying GET https://theme-kit-access.shopifyapps.com/cli/sfr/password?_fd=0&_fd=0&pb=0
DEBUG `-> 200 request_id: a0abfcae-8602-4f7a-b83f-b6ad22f91c32
DEBUG [HotReload] Connected to SSE stream
DEBUG Proxying POST https://theme-kit-access.shopifyapps.com/cli/sfr/password?_fd=0&pb=0
DEBUG `-> 302 request_id: 6e392f3e-3559-43b6-a2b0-8e05765dacbf
DEBUG Proxying GET https://theme-kit-access.shopifyapps.com/cli/sfr/?_fd=0&pb=0
DEBUG `-> 302 request_id: d3b62eb5-3225-4365-93ba-0f5fcb1dca4c
DEBUG Proxying GET https://theme-kit-access.shopifyapps.com/cli/sfr/password?_fd=0&_fd=0&pb=0
DEBUG `-> 200 request_id: bbae4bb7-a1fc-4179-878a-fed6d04f9179
DEBUG [HotReload] Connected to SSE stream
DEBUG Proxying POST https://theme-kit-access.shopifyapps.com/cli/sfr/password?_fd=0&pb=0
DEBUG `-> 302 request_id: 710d09df-c839-4a80-ba4d-f877839b367a
DEBUG Proxying GET https://theme-kit-access.shopifyapps.com/cli/sfr/?_fd=0&pb=0
DEBUG `-> 302 request_id: bc020e7e-7df2-4101-ac73-639b9d43e1e4
DEBUG Proxying GET https://theme-kit-access.shopifyapps.com/cli/sfr/password?_fd=0&_fd=0&pb=0
DEBUG `-> 200 request_id: 3bc35a74-1dce-402e-bc11-179b26920797
DEBUG [HotReload] Connected to SSE stream
^CDEBUG Stop signal: "SIGINT"
Stopping…
DEBUG Stop signal: "SIGTERM"
Stopping…
kenji starter-theme-vite % [2023-06-22 08:19:49] INFO  going to shutdown ...
[2023-06-22 08:19:49] INFO  WEBrick::HTTPServer#start done.

kenji starter-theme-vite %

Reproduction steps

Operating System

MacOS Ventura 13.4 (22F66)

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

3.46.5 (installed via Homebrew)

Shell

zsh

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

v16.19.1

What language and version are you using in your application?

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 5
  • Comments: 28 (8 by maintainers)

Most upvoted comments

still relevantly relevant

This issue has been fixed by https://github.com/Shopify/cli/pull/3249 and the fix is available in the latest release of Shopify CLI (3.55.x).

Can confirm I’m running into this on iOS 15.0 / Safari 15.0.

edit: it appears my issue is better described by #1151 since it’s Safari