Shopify CLI - Error on push of product subscription extension

Solved
Jonny_Bloom
Tourist
9 0 2

Hi,

I have a custom app which uses the selling plan API and has an extension registered of type: product subscription.

This is an extension for the argo admin as outlined here: https://shopify.dev/apps/subscriptions/app-extensions/getting-started

I've made several updates to this extension in the past without issue but since updating Shopify CLI it has stopped working.

I receive the following error when trying to push an update:

✗ Extension template references invalid renderer package please contact Shopify for help.

The extension is using react template without typescript. Running on OSX 11.6, npm 16.*

I've removed node_modules and reinstalled, I have also used Shopify CLI to create a new extension then change the env setting to push to the same remote extension but I get the same issue.

Can anyone help with this, I've been on contact with Shopify support but they couldn't help and directed me to Github and here.

Accepted Solution (1)

Accepted Solutions
cecy
Shopify Staff
5 1 2

This is an accepted solution.

New version 2.6.6 should be out now. Please update your CLI and let us know
if the issue persists.

Best,

View solution in original post

Replies 10 (10)
cecy
Shopify Staff
5 1 2

Can you clarify which version of the CLI you are using? Please make sure you're using the latest version, 2.6.5.

If that doesn't solve the issue, could you run the command with SHOPIFY_CLI_STACKTRACE=1 and post the result of the stack trace?

Example:

SHOPIFY_CLI_STACKTRACE=1 shopify extension push

 

t6d
Shopify Staff
1 0 0

In addition to the stacktrace Cecy requested, could you also provide us with a copy of your `package.json` file? This will make it easier for us to diagnose the issue.

Thanks,
Konstantin

Jonny_Bloom
Tourist
9 0 2

Hi thanks for the reply,

I can confirm I'm running 2.5.6

When I try to run the command with the stack trace it doesn't return any additional information:

Screenshot 2021-10-23 at 11.28.36.png

My package.json file:

{
  "name": "admin-ui-extensions-template",
  "version": "0.1.0",
  "main": "extension.ts",
  "engines": {
    "node": ">=10.16.0"
  },
  "repository": "https://github.com/Shopify/admin-ui-extensions-template.git",
  "author": "Shopify <app-extensions@shopify.com>",
  "license": "MIT",
  "devDependencies": {
    "@shopify/admin-ui-extensions-run": "latest",
    "eslint": "^7.32.0",
    "eslint-plugin-react": "^7.24.0"
  },
  "scripts": {
    "server": " admin-ui-extensions-run server --entry=\"index.js\" --type=PRODUCT_SUBSCRIPTION",
    "build": "admin-ui-extensions-run build --entry=\"index.js\""
  },
  "dependencies": {
    "@shopify/admin-ui-extensions-react": "latest",
    "react": "^17.0.0"
  }
}
Jonny_Bloom
Tourist
9 0 2

Correction on post above: I can confirm I'm running 2.6.5

cecy
Shopify Staff
5 1 2
Hello!

I have identified the issue and I'm working on a fix. I will let you know
as soon as the fix is out and when you can expect it to go live.

Thanks for bringing this to our attention!
Jonny_Bloom
Tourist
9 0 2

Hi @cecy thanks for looking into this for us. Do you know when this might be completed as we are waiting on it to be able to launch some new functionally for a client for the 30th October?

I can interact with the API via curl requests to set the data directly if needed if it's not going to be in the next day or so.

Thank you!

 

cecy
Shopify Staff
5 1 2

Hello!

The next planned release of the shopify-cli is November 1st, so we are aiming to have this fix go out with that release. Sorry for the inconvenience!

Jonny_Bloom
Tourist
9 0 2

That is great, thank you!

cecy
Shopify Staff
5 1 2

This is an accepted solution.

New version 2.6.6 should be out now. Please update your CLI and let us know
if the issue persists.

Best,

View solution in original post