Skip to content

admin.order-details.block.render cannot be configured in the same extension as admin.order-details.action.render #2411

Open
@patryk-smc

Description

@patryk-smc

Please list the package(s) involved in the issue, and include the version you are using

    "@shopify/ui-extensions": "2024.10.0",
    "@shopify/ui-extensions-react": "2024.10.0",

Describe the bug

Minor annoyance, the admin targets: admin.order-details.block.render cannot be configured in the same extension as admin.order-details.action.render. The App CLI returns following error:

13:59:32 │                app-access │ Error while updating drafts: Invalid extension point(s) configured:
13:59:32 │                app-access │ - admin.order-details.block.render cannot be configured in the same extension as admin.order-details.action.render. Create a new extension with the admin.order-details.block.render extension point(s).

Steps to reproduce the behavior:

Create toml:

api_version = "2024-10"

[[extensions]]
name = "t:name"
handle = "admin-extension"
type = "ui_extension"

[[extensions.targeting]]
module = "./src/targets/OrderDetailsBlock.tsx"
target = "admin.order-details.block.render"

[[extensions.targeting]]
module = "./src/targets/OrderDetailsAction.tsx"
target = "admin.order-details.action.render"

Expected behavior

This should be possible, as it is possible with Checkout and POS extensions.

Screenshots

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions