# Not Able To Deploy My Discount Function

**URL:** <https://community.shopify.dev/t/not-able-to-deploy-my-discount-function/27654>\
**Category:** Extensions\
**Tags:** checkout-ui-ext, admin-ui-extensions\
**Created:** [December 22, 2025, 6:11am UTC](https://community.shopify.dev/t/not-able-to-deploy-my-discount-function/27654 "2025-12-22T06:11:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Namish\_Kapoor](https://avatars.discourse-cdn.com/v4/letter/n/e480ec/32.png) [@Namish\_Kapoor](https://community.shopify.dev/u/Namish_Kapoor)\
**Post date:** [December 22, 2025, 6:11am UTC](https://community.shopify.dev/t/not-able-to-deploy-my-discount-function/27654/1 "2025-12-22T06:11:58Z")

</div>

I’ve created an app, and I am not able to deploy my discount function UI because of the following error

 ![image](https://global.discourse-cdn.com/shopifycommunity/original/2X/a/af5d16d8a2910bd4ee0585cc00db5df297edb513.png)

Can you please let me know the exact and proper migration guide to deploy the extension to my app

Below is my `.toml` file and `.json` of discount ui for reference if needed

```json
{
  "name": "acc-ge-product-164-ui",
  "private": true,
  "version": "1.0.0",
  "license": "UNLICENSED",
  "dependencies": {
    "react": "^18.0.0",
    "@shopify/ui-extensions": "2024.10.x",
    "@shopify/ui-extensions-react": "2024.10.x",
    "react-reconciler": "0.29.0"
  },
  "devDependencies": {
    "@types/react": "^18.0.0"
  }
}

```

```javascript
api_version = "2024-10"

[[extensions]]
# Change the merchant-facing name of the extension in locales/en.default.json
name = "t:name"
handle = "acc-ge-product-164-ui"
uid = "f08e9d3f-4830-1407-723f-ffc570c775677b9a91db"
type = "ui_extension"

# Only 1 target can be specified for each Admin block extension
[[extensions.targeting]]
module = "./src/DiscountFunctionSettings.tsx"
# The target used here must match the target used in the module file (./src/DiscountFunctionSettings.tsx)
target = "admin.discount-details.function-settings.render"

```

`.toml` for discount function

```javascript
api_version = "2025-01"

[[extensions]]
name = "t:name"
handle = "acc-ge-product-164"
uid = "fdb6ea80-2ade-cbba-1457-8eb13ec606e3edb3e672"
type = "function"

description = "t:description"

[[extensions.targeting]]
target = "purchase.product-discount.run"
input_query = "src/run.graphql"
export = "run"

[extensions.build]
command = ""
path = "dist/function.wasm"

[extensions.ui.paths]
create = "/"
details = "/"

[extensions.ui]
handle="acc-ge-product-164-ui"

```

---

<div class="post-metadata">

**Author:** ![Luke](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/luke/32/22023_2.png) [@Luke](https://community.shopify.dev/u/Luke)\
**Post date:** [December 22, 2025, 8:38am UTC](https://community.shopify.dev/t/not-able-to-deploy-my-discount-function/27654/2 "2025-12-22T08:38:40Z")

</div>

The error message is pretty clear, you’re using `2024-10` in your toml file and your extension is using `2025-01`.

I suggest following what it says in the error message to resolve this.

---

<div class="post-metadata">

**Author:** ![Namish\_Kapoor](https://avatars.discourse-cdn.com/v4/letter/n/e480ec/32.png) [@Namish\_Kapoor](https://community.shopify.dev/u/Namish_Kapoor)\
**Post date:** [December 22, 2025, 8:48am UTC](https://community.shopify.dev/t/not-able-to-deploy-my-discount-function/27654/3 "2025-12-22T08:48:25Z")

</div>

It would be really helpful if we got some migration guide or steps, because currently, I am having all sorts of errors after upgrading it to the latest version
