Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
patryk-smc opened this issue Oct 11, 2024 · 0 comments
Labels
Admin UI Extensions bug Something isn't working

Comments

@patryk-smc
Copy link

patryk-smc commented Oct 11, 2024

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

@patryk-smc patryk-smc added the bug Something isn't working label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin UI Extensions bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants