Hi, I’ve been playing around with admin product configuration ai extensions today and unfortunately I was unable to get them to work. My extension simply doesn’t show up on product details and product variant details pages. The output of shopify app dev doesn’t show anything concerning.
Also, my IDE shows a strange error saying “Text cannot be used as a JSX component”. I’m not sure if it’s related to the issue I’m having, but the same happens with the rest of admin ui extension components, not only Text. POS UI extension components and polaris components don’t have that issue.
Could anyone try to reproduce the issue?
Steps to reproduce:
- Create a new app
shopify app init
- Generate a new extension
shopify app generate extension
- Pick Admin → Product configuration
- Run
shopify app dev
- Click on the preview link
- Navigate to product details or variant details and observe your extension not being rendered
Console output after running shopify app dev:
01:26:47 │ remix │ Running pre-dev command: "npx prisma generate"
01:26:47 │ graphiql │ GraphiQL server started on port 3457
01:26:47 │ why │ Bundling UI extension why...
01:26:47 │ kori │ Bundling UI extension kori...
01:26:47 │ my-product-config-extensi │ Bundling UI extension my-product-config-extension...
01:26:47 │ why │ Parsed locales for extension why at /Users/jakub/Programming/kori/extensions/why
01:26:47 │ kori │ Parsed locales for extension kori at /Users/jakub/Programming/kori/extensions/kori
01:26:47 │ my-product-config-extensi │ Parsed locales for extension my-product-config-extension at /Users/jakub/Programming/kori/extensions/my-product-config-extension
01:26:47 │ my-product-config-extensi │ Parsed locales for extension my-product-config-extension at /Users/jakub/Programming/kori/extensions/my-product-config-extension
01:26:47 │ my-product-config-extensi │ my-product-config-extension successfully built
01:26:47 │ why │ why successfully built
01:26:47 │ kori │ kori successfully built
01:26:47 │ why │ Parsed locales for extension why at /Users/jakub/Programming/kori/extensions/why
01:26:47 │ kori │ Parsed locales for extension kori at /Users/jakub/Programming/kori/extensions/kori
01:26:48 │ remix │ Prisma schema loaded from prisma/schema.prisma
01:26:48 │ remix │ Datasource "db": SQLite database "dev.sqlite" at "file:dev.sqlite"
01:26:48 │ remix │
01:26:48 │ remix │ 1 migration found in prisma/migrations
01:26:48 │ remix │
01:26:48 │ remix │
01:26:48 │ remix │ No pending migrations to apply.
01:26:48 │ why │ Draft updated successfully for extension: why
01:26:48 │ kori │ Draft updated successfully for extension: kori
01:26:49 │ my-product-config-extensi │ Draft updated successfully for extension: my-product-config-extension
01:26:49 │ remix │ ➜ Local: http://localhost:49341/
01:26:49 │ remix │ ➜ Network: use --host to expose
01:26:54 │ kori │ Parsed locales for extension kori at /Users/jakub/Programming/kori/extensions/kori
01:26:54 │ kori │ Parsed locales for extension kori at /Users/jakub/Programming/kori/extensions/kori
