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

 

 

mathanlogi
New Member
4 0 0

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

0 Likes
threelyons
New Member
1 0 0

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

0 Likes
Webdibs
Excursionist
13 0 3

Same problem here.

0 Likes
Muttahhar
Tourist
5 0 1

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

0 Likes
Muttahhar
Tourist
5 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.

0 Likes
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.

0 Likes
Muttahhar
Tourist
5 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.

0 Likes
csam
Shopify Staff
Shopify Staff
131 18 20

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

0 Likes
Webdibs
Excursionist
13 0 3

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

0 Likes