Shopify CLI gives an Error when trying to serve extension

Skyttexd
New Member
1 0 1

I have been trying to create a subscription plan extension app for a project, but whenever i try to serve it to start a server it gives me this Error "✗ `@shopify/admin-ui-extensions-run` package not found.". I've used shopify cli to scaffold the product subscription app extension.

I have tried to re-install the admin-ui-extensions-run npm, and the entire extension project, but it does not work.

any idea's would be greatly appreciated

thank you

 

 

Replies 11 (11)
mathanlogi
New Member
4 0 0

Same problem here as well. Tried with both Vanilla JS and React JS option.

threelyons
New Member
1 0 0

I'm getting the same problem. There doesn't seem to be any documentation about it. 

Webdibs
Shopify Partner
29 2 6

Same problem here.

Stretching the limits of Shopfy, Wordpress & WooCommerce since 2010.
Muttahhar
Shopify Partner
6 0 1
Muttahhar
Shopify Partner
6 0 1

I got it working with the following steps:

Deleted node_modules folder and package-lock.json
Ran 'yarn install'

Running 'npm install' instead of 'yarn install' might also work but I haven't tested that.

mathanlogi
New Member
4 0 0

Dear Muttahhar,

Thanks for posting!

Just tried with both yarn and npm, however still the issue persists. Is there anything further you did differently to make it work?

Were you able to run the further steps mentioned in the following doc?

https://shopify.dev/apps/subscriptions/app-extensions/getting-started#run-the-local-extension-in-you...

 

Thanks.

Muttahhar
Shopify Partner
6 0 1

No, I didn't do anything else. But I did select the vanilla js option.

This is my configuration:
Ubuntu 20.04.3
shopify-cli version 2.3.0
yarn version 1.22.5
node version 14.17.6

I haven't yet followed the entire doc but as mentioned in the doc, I am able to see the Subscriptions card in my developmental store's product pages and can also see the extension in the Developer Console. I am also able to see some minor text changes I made in the index.js file.

csam
Shopify Staff
Shopify Staff
267 40 43

Hi @Skyttexd @mathanlogi @Webdibs @threelyons 

Could you please add as much information as you can about the issue you're experiencing on https://github.com/Shopify/shopify-cli/issues/1452 - any info about how your app is set up, or additional messaging in the logs would be helpful. Thanks!

CS | API Support @ 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

Webdibs
Shopify Partner
29 2 6

ADded, I had to create a new application and overwrite my code on it. So I don't think my code caused this.

Stretching the limits of Shopfy, Wordpress & WooCommerce since 2010.
anthdng
New Member
2 0 1

There is some issue with installing the package `@shopify/admin-ui-extensions-run` on your local. Shopify CLI cannot find it

This fix https://github.com/Shopify/shopify-cli/issues/1452#issuecomment-924552185 might help

Conjured_Char
Shopify Partner
33 0 3

Thank you! Using yarn instead of npm for install solved my problem!