App gets renamed on deployment

Hi, yesterday I have experienced an issue with app deployment:

  1. Created my name with a name ‘X’
  2. App showed in the partners dashboard with correct name ‘X’
  3. I worked on my checkout extension
  4. When i ran ‘shopify app deploy’ → my app got renamed to ‘Y’
  5. Name in the partners dahsboard also got renamed to ‘Y’

Has anyone experienced anything similar?

After that my app name was ‘Y’ everywhere, also in the dev and partners dashboard:

Please check whats in your shopify.app.toml, not package.json

Hi, thanks, I wasn’t reffering to package.json here, but here’s screenshot of app.toml file

You can try setting a handle in your shopify.app.toml then it will always use that.

Thanks for the suggestion. But will it actually solve my issue?

Because i tried to create a new app again and the same issue happened for me, and it was renamed to the same thing again ‘kvety-delivery-date..’. The issue is that ‘kvety-delivery-date’ is also an app I have and it’s not related to this one at all.

After i try deploying again after the first deployment that caused the renaming, I get prompted to delete all of the extensions from ‘kvety-delivery-date’ app and add my extension from my app that I actually deployed first, which is odd because the extensions from that other app don’t even exist in my new app directory.

From what I can see, you haven’t added handle in your shopify.app.toml, I suggest you try doing that.

Hi Luke, i tried to add a handle to app.toml, but when i tried to deploy again, I was again prompted to delete all of my extensions and add other apps extensions, which is not solving the issue from my point of view, but thanks for the suggestion

This is most likely because the client_id was copied over from one app to another.
Did you copy the other app’s TOML file over to the new app? If you do this, make sure that you don’t replace the client_id as well.

Hi, thanks, but that wasn’t the case. Updating CLI to the latest version fixed it

Hi @Presidio, that’s really good to know. Thanks for sharing what worked for you!