After updating from @shopify/ui-extensions@2025.10.0-rc.41 to @shopify/ui-extensions@2025.10.0-rc.43, TypeScript compilation fails with errors related to the children prop not being recognized on Polaris Web Components.
Error Details
The following TypeScript errors occur across all UI extension components:
Type '{ children: Element[]; }' is not assignable to type 'StackJSXProps & PreactBaseElementProps<Stack>'.
Property 'children' does not exist on type 'StackJSXProps & PreactBaseElementProps<Stack>'.
Type '{ children: string; }' has no properties in common with type 'ParagraphJSXProps & PreactBaseElementProps<Paragraph>'.
Type '{ children: Element; }' is not assignable to type 'BoxJSXProps & PreactBaseElementProps<Box>'.
Property 'children' does not exist on type 'BoxJSXProps & PreactBaseElementProps<Box>'.
Type '{ children: string; }' has no properties in common with type 'TableHeaderJSXProps & PreactBaseElementProps<TableHeader>'.
Type '{ children: number; type: "strong"; }' is not assignable to type 'TextJSXProps & PreactBaseElementProps<Text>'.
Property 'children' does not exist on type 'TextJSXProps & PreactBaseElementProps<Text>'.
Affected Components
-
s-stack -
s-paragraph -
s-box -
s-text -
s-table-header -
s-link -
s-button -
s-select -
s-option -
s-grid -
s-grid-item -
s-heading -
s-table
Environment
-
@shopify/ui-extensions:2025.10.0-rc.43 -
preact:^10.11.x -
TypeScript:
^5.9.2 -
Node.js:
>=22.16.0 -
npm:
>=10.9.0
Expected Behavior
Components should accept children prop as they did in 2025.10.0-rc.41.
Actual Behavior
TypeScript compilation fails with children prop not being recognized on Polaris Web Components.
Workaround
Reverting to @shopify/ui-extensions@2025.10.0-rc.41 resolves the TypeScript errors.
Additional Context
This appears to be a breaking change introduced in the RC.43 patch that affects how Polaris Web Components handle the children prop. The issue affects all UI extensions using the RC version and prevents TypeScript compilation from succeeding.
Steps to Reproduce
-
Install
@shopify/ui-extensions@2025.10.0-rc.43 -
Use any Polaris Web Component with children content
-
Run TypeScript compilation
-
Observe TypeScript errors related to
childrenprop
