Cannot create shopify extension

Solved
ericute
Shopify Partner
39 1 3

We currently have a Shopify App and we're trying to implement Theme App Extension. 

 

I've updated my Shopify CLI version via Homebrew and it is currently on 3.46.3. I tried `shopify extension create type="THEME_APP_EXTENSION"` and `shopify app generate extension` but both didn't work.

 

Here's a sample screenshot:

ericute_0-1686283979903.png

 

Can anyone point me in the right direction on what I need to do?

Accepted Solution (1)
ericute
Shopify Partner
39 1 3

This is an accepted solution.

I figured out the problem. I needed to update my package.json and add the scripts and dependencies in here:

https://shopify.dev/docs/apps/tools/cli/migrate#step-3-add-shopify-cli-as-a-project-dependency

 

View solution in original post

Replies 2 (2)
Liam
Shopify Staff
Shopify Staff
1344 126 430

Hi there Ericute - can you try running `npm run shopify app generate extension` to create the extension - this should prompt you to be able to select Theme app extension as the extension type. More details in this help doc: https://shopify.dev/docs/apps/online-store/theme-app-extensions/getting-started

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

ericute
Shopify Partner
39 1 3

This is an accepted solution.

I figured out the problem. I needed to update my package.json and add the scripts and dependencies in here:

https://shopify.dev/docs/apps/tools/cli/migrate#step-3-add-shopify-cli-as-a-project-dependency