Deploy a App Extension always delete the other extensions

Hello friends,
I have been searching for a long time to find an answer, but unfortunately I was not successful. I have an app with 2 extensions. A Theme App extension and a Carttransform extension. Now when I want to deploy one of them via visual Studio and ‘npm run deploy’ after making corrections, the CLI always informs me that the other app will be removed. So I can’t update an app extension without deleting another one. Where do I have the error? I have already stored the ID of the other app in both .env files and I have also tried to adjust various things in the .tom file but it does not work

Hi Manfred – firstly, when you deploy, it’s always the whole app that deploys. As extensions etc. may rely on each other, everything is deployed as a single unit – even if you actually only changed one piece of one thing. So, a first thing to quickly check in on is that you have both the theme app extension and cart transform extension in your codebase.

1 Like

Hi Shaun,
Thanks for your quick reply.
I already thought of something like that and am currently in the process of merging the two extensions into one environment. Now when I run npm run dev I get an error message

Building function cart-transformer…
14:04:59 │ extensions │ Building GraphQL types…
14:05:04 │ extensions │ (node:32116) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
14:05:04 │ extensions │ (Use node --trace-deprecation ... to show where the warning was created)
14:05:04 │ extensions │ Cannot convert undefined or null to object

Hast Du einen Tip

This looks like an error building your cart transform function. Do you get any additional detail if you run shopify app function build from the function’s folder? What if you add --verbose?