Re: Shopify CLI gives an Error when trying to serve extension

Shopify CLI gives an Error when trying to serve extension

Skyttexd
Visitor
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 13 (13)

mathanlogi
Tourist
4 0 1

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

threelyons
Visitor
1 0 0

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

Webdibs
Shopify Partner
30 2 9

Same problem here.

Stretching the limits of Shopfy, Wordpress & WooCommerce since 2010.

Muttahhar
Shopify Partner
10 0 2

Same problem here, even after following the steps on this page: 
https://shopify.dev/apps/tools/cli/troubleshooting#product-subscription-app-extension

Muttahhar
Shopify Partner
10 0 2

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
Tourist
4 0 1

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
10 0 2

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 (Retired)
267 40 51

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!

To learn more visit the Shopify Help Center or the Community Blog.

Webdibs
Shopify Partner
30 2 9

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
Visitor
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
36 0 4

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

Energy2080
Shopify Partner
4 0 0

Check your node_modules/@shopify folder for admin-ui-extensions

If its not there run:

npm i @Shopify/admin-ui-extensions

den232
Shopify Partner
220 8 56

Note that capital letters are not allowed.  Use npm i @shopify/admin-ui-extensions