Open MagnusFischer opened 2 days ago
Hey @MagnusFischer! I tried replicating this locally and wasn't able to reproduce.
Could you help me out with the following information please?
theme
flag?Hi @jamesmengo
I'm running shopify app dev
command in the project folder of the Shopify Remix template app. The store I'm running this on is a developer store that has a clean copy of Dawn installed as the published theme.
I used shopify app generate extension
to generate the theme extension.
It seems like theme.liquid
password.liquid
settings_schema.json
are missing all their contents. Below you'll find some screenshots. Worth noting that the store does not have any other themes besides the published one, not even development themes.
👋🏻 Thanks for the screenshots @MagnusFischer !
This is interesting behaviour indeed - this particular issue could be related to numerous causes. I've got a couple in mind, but I'll need your help to narrow it down further.
theme
flag when running this?To unblock you:
shopify theme delete -t=$(shopify theme list --store=quickstart-b88db4f0.myshopify.com --name="App Ext. Host*" | grep -o '#[0-9]*' | tr -d '#')
and then run shopify app dev --verbose
again and update me here + share your verbose logs please?Hi @jamesmengo appreciate the quick responses!
shopify app dev
Below you'll find the verbose output after going through the unblocking process you described:
@MagnusFischer Thanks for those logs, I think I figured it out.
You can try installing this custom package @shopify/cli@0.0.0-snapshot-20241108034419
. Run shopify --version
first to ensure you're hitting it, and let me know if that works for you!
Hopefully we can get this rolled into next week's release if it does🤞🏻
@jamesmengo Running the cli snapshot you sent has resolved this issue. Thank you so much!
Please confirm that you have:
In which of these areas are you experiencing a problem?
Extension
Expected behavior
I would think that it would create a complete development theme that includes all assets.
I'm using the Remix scaffolding template provided by Shopify
Actual behavior
The development theme created ends up missing a bunch of assets, liquid files and json templates.
Verbose output
2024-11-05T13:41:53.584Z: Getting storefront password for shop fischer-test-1.myshopify.com... 2024-11-05T13:41:53.685Z: Request to https://fischer-test-1.myshopify.com/password completed in 99 ms With response headers:
2024-11-05T13:41:53.685Z: Setting storefront password for shop fischer-test-1.myshopify.com... 2024-11-05T13:41:53.693Z: Getting host theme... 2024-11-05T13:41:53.708Z: Finding or creating host theme for theme app extensions 2024-11-05T13:41:53.867Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174090813770.json?fields=id%2Cname%2Crole%2Cprocessing completed in 158 ms With response headers:
2024-11-05T13:41:53.868Z: Removing host theme... 2024-11-05T13:41:53.874Z: Attempt 0/3: Creating theme with name "App Ext. Host (81dfd2-Mac)" and role "development" 2024-11-05T13:41:55.845Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes.json completed in 1971 ms With response headers:
2024-11-05T13:41:56.600Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754/assets/bulk.json completed in 752 ms With response headers:
2024-11-05T13:41:56.602Z: Setting host theme... 2024-11-05T13:41:56.608Z: Waiting for theme with id "174091239754" to be processed 2024-11-05T13:41:56.819Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 210 ms With response headers:
2024-11-05T13:42:00.000Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 175 ms With response headers:
2024-11-05T13:42:03.181Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 175 ms With response headers:
2024-11-05T13:42:06.388Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 202 ms With response headers:
2024-11-05T13:42:09.578Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 186 ms With response headers:
2024-11-05T13:42:12.785Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 203 ms With response headers:
2024-11-05T13:42:15.978Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 191 ms With response headers:
2024-11-05T13:42:19.154Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 172 ms With response headers:
2024-11-05T13:42:22.344Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 187 ms With response headers:
2024-11-05T13:42:25.567Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 221 ms With response headers:
2024-11-05T13:42:28.770Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 196 ms With response headers:
2024-11-05T13:42:31.945Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 171 ms With response headers:
2024-11-05T13:42:35.103Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 153 ms With response headers:
2024-11-05T13:42:38.308Z: Request to https://fischer-test-1.myshopify.com/admin/api/unstable/themes/174091239754.json?fields=id%2Cname%2Crole%2Cprocessing completed in 201 ms With response headers:
╭─ info ───────────────────────────────────────────────────────────────────────╮ │ │ │ The theme app extension development server is ready. │ │ │ │ Next steps │ │ 1. Install your app in your development store [1] │ │ 2. Setup your theme app extension in the host theme [2] │ │ 3. Preview your theme app extension at http://127.0.0.1:9293 [3] │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [1] https://partners.shopify.com/141089/apps/172895174657/test [2] https://fischer-test-1.myshopify.com/admin/themes/174091239754/editor [3] http://127.0.0.1:9293
Reproduction steps
Operating System
Mac OS 15.1 (24B83)
Shopify CLI version (check your project's
package.json
if you're not sure)3.69.4
Shell
zsh
Node version (run
node -v
if you're not sure)v20.16.0
What language and version are you using in your application?
Node