Shopify themes, liquid, logos, and UX
I am developing a new theme for my existing store.
Previously, I was running `shopify theme dev --store <my-production-store>` which was running fine.
Now I have opened a new development store, and I want to switch the target store to this store.
However when I run `shopify theme dev --store <my-development-store>`, then none of the theme code is applied. Here is a screenshot of how the theme is breaking:
Can I not switch target stores during theme development?
Solved! Go to the solution
This is an accepted solution.
managed to fix this by adding config/settings_schema.json from an existing theme. detailed steps below
1) open the preview link (https://<my-store-domain>?preview_theme_id=xxx)
2) an error message stating "Theme cannot be previewed because it's missing one of these required files: layout/theme.liquid, config/settings_schema.json"
3) go to admin > online store > edit code, and copy the existing `config/settings_schema.json`
4) go back to my editor, and create file `config/settings_schema.json`, then paste the contents
5) re-run `shopify theme dev`
for some reason, it was working on my first store, but failed on the second
Hi Mimi33,
If you want to switch between accounts, first you need to log out of the current account using the command:
`shopify auth logout`
Then run `shopify theme dev --store <my-development-store>`
even after running `shopify auth logout` I am still facing the same issue
This is an accepted solution.
managed to fix this by adding config/settings_schema.json from an existing theme. detailed steps below
1) open the preview link (https://<my-store-domain>?preview_theme_id=xxx)
2) an error message stating "Theme cannot be previewed because it's missing one of these required files: layout/theme.liquid, config/settings_schema.json"
3) go to admin > online store > edit code, and copy the existing `config/settings_schema.json`
4) go back to my editor, and create file `config/settings_schema.json`, then paste the contents
5) re-run `shopify theme dev`
for some reason, it was working on my first store, but failed on the second
Theme cannot be previewed because it's missing one of these required files: layout/theme.liquid, config/settings_schema.json
I found a workaround of this - if you have .shopifyignore file, remove it or delete the code inside of it and then run shopify theme pull.
This will pull all files from server to local, in your feature branch you are doing this, now run shopify theme dev and this will show your local instance of store up and running, now you undo the .shopifyignore and then discard the changes which are showing in your git, and start your feature branch from the point of coding time you left, happy coding.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024