-
Notifications
You must be signed in to change notification settings - Fork 136
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
[Bug]: Theme ID mismatch – Live theme ID returned instead of development theme #4634
Comments
I have had this one too also a couple of times. Seems to be random as well. |
i have the same Issue |
Being bitten by this as well, only in my case I wasn't setting the theme ID explicitly but allowing the cli to create a development theme ID for me. It seems like in that case on certain routes the cli decides that the dev theme id doesn't match the active theme's, and then the cli crashes. Explicitly setting the ID as that of the active theme (either using a toml or the Not sure how this problem began, I've not changed anything in my local dev process. That said, other people in the org aren't running into this, so maybe it's something I'm doing. |
Back to the v3 problem: Here's the verbose log – note the I'm wondering if this has to do with cached routes being served while running
|
I was having this problem too. Quick fix if anyone needs it - assuming you're using Chrome - Copy & paste Delete your cookies & other stored files for 127.0.0.1 Restart your |
👋 Hey everyone, Could you please validate this issue is really fixed for you on this version of the CLI?
I'd like to be sure this issue is resolved for everyone in the next release. Thanks a lot for reporting this! |
I did this but it still didn't fix it for me. |
I had this issue, and managed to work out why it was happening to me. My theme was pre-requesting URLs when you hover a link. In this case when I hovered "My Orders" it was pre-requesting /accounts/orders which was just crashing the CLI. Binning that URL off removed the constant cli crash. Incidentally, I can manually trigger the crash by navigating to account/orders in my browser. |
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
Shopify CLI should not crash, and always get connected to the theme ID specified by the environment in the
shopify.theme.toml
file.Actual behavior
CLI quits on start or page load and returns this error:
Verbose output
Reproduction steps
shopify theme dev -e [ENV_NAME]
using theshopify.theme.toml
file to specify store name and theme IDOperating System
Mac OS Sonoma 14.5
Shopify CLI version (check your project's
package.json
if you're not sure)3.68.1
Shell
zsh
Node version (run
node -v
if you're not sure)v20.17.0
What language and version are you using in your application?
No response
The text was updated successfully, but these errors were encountered: