I have created a flow screen component that work for multiple object. In the flow, I have created a collection variable. I have created an LWC component that uses the collection variable.
When I try to deploy the flow in a different org (which already includes LWC component), I get a deployment error 'Screen component 'Show_Selection_Menu' is missing a type mapping 'T'.'
This is my TargetConfig
<targetConfig targets="lightning__FlowScreen">
<propertyType name="T" extends="SObject" label="Object Name" description="Select SObject API NAME" />
<property name="selectionList" label="List of items" type="{T[]}" />
<property name="selectedItem" type="String" label="selectd" description="Selected item"/>
</targetConfig>
In the flow, I created selectionList of customobject type. I can deploy my LWC component. In the flow, I have shown my LWC component. I cannot deploy my flow.
Any help, idea on how i can deploy the flow? Thank you