Migrate admin links - causing 500 errors

I have an admin link extensions that was manually created to add a link to the page edit screen (and one for the page list screen).

I followed the migration instructions as documented here; Migrate admin links using shopify app import-extensions to import the admin link extensions I had previously manually set up in the partners portal for my app.

After deploying, the page edit screen immediately starts to 500. If I remove the extensions from my codebase and re-deploy the app, the page starts working again.

There also doesn’t appear to be a way to edit or delete the old (manually created) extensions from the partner portal. Migrating using the tool doesn’t seem to replace these, just add additional ones that error.

Hello @Dayjo,

Thank you for reaching out. Can you please let us know which app is this?

Here’s a few troubleshooting steps you can try:

  1. In the root folder of your app, run shopify dev.
  2. Run shopify deploy again.

Please let us know if this still doesn’t work and we will investigate further.

Hi @Belal_Sejouk, that’s really helpful thank you, re-running shopify app dev made a difference and now picks up changes.

I am still unable to remove the old / manually added ones from the portal, so they’re now essentially duplicated.

I also seem unable to add a new link, with the same ‘name’ (which I presumed was just the button text), despite the filename, and handle property being unique, it seems to generate it’s own slugified handle from the name property rather than using the specified handle, and I get the following error;

Error reloading app: Duplicated handle "edit-with-app-name" in extensions "Edit with App Name" and "Edit with App Name". Handle needs to be unique per extension.

Given that in the documentation it allows for use of locales I wasn’t expecting it to take the name as the handle, I was expecting it to take the handle property as the handle. Any suggestions so that my button appearing in both product details, and page details could have the same text?