Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Unable to publish Argo Extension

Chong1
New Member
4 0 0

Hi guys,

Is anyone facing the same problem with publishing the Argo subscription extension via the CLI? I am getting an error ` An error occurred while attempting to prepare your script` . I would kindly love any suggestions as to what might be caused this error?

I followed the steps here: https://shopify.dev/tutorials/getting-started-product-subscription-extension

1) shopify create extension --type=PRODUCT_SUBSCRIPTION --name="My test extension"
2) shopify register
3) shopify push

 Pushing your extension to Shopify ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┃ Pushing code to Shopify...
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (3.51s) ━━
X An error occurred while attempting to prepare your script.

I am using the default code provided by the Argo extension without any modifications to reduce the possibilities of my modified code being the root cause of the issue. 

Anyone have any experience with this? Thank you for your time.

 

 

 

Replies 4 (4)

jlalande
Shopify Staff (Retired)
19 4 13

Hi @Chong1 , thanks for reaching out! 

Could you try to follow the `upgrading` steps here and see if the problem persists? https://shopify.dev/tutorials/getting-started-product-subscription-extension#upgradin

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

Chong1
New Member
4 0 0

Hey,

Thanks for the response. Yes, the `upgrade ` command seems to do the trick. I am able to publish the extension now.

maxcoffer
Visitor
1 0 0

Hi @jlalande shouldn't package name there be "shopify-cli" instead of "shopify-run" at the "Upgrade the Shopify CLI" step here? https://shopify.dev/apps/subscriptions/app-extensions/getting-started#upgrading

brew upgrade shopify-run

 

Chong1
New Member
4 0 0

Hi jlande,

can you help us with the new argo extension bug that revolves around the inability to push the extension script to shopify after the command `shopify extension push`. The extension has been registered with an app and once again, I am using the default code to eliminate any possibilities of my code being the root cause of the issue.

The tutorial that you've linked earlier had undergone some updates and the solution no longer works. I've attached a screenshot of the bug below. 

 

bug.png

 

Thank you for your time 🙂