Managed Package Error – LWC in Flow Returns Error During Package Creation

issuelightning-buttonlightning-web-componentsmanaged-packagescreen-flow

I used the LWC component which works on orgs of all types (sandboxes, scratches, etc) and used in screen flow.
There were no errors when I've ever deployed to these orgs.
BUT

When I've tried to create 2nd gen package version and received the error:

(Flow_Name) duplicate value found: <unknown> duplicates value on record with id: <unknown>
Flow_Name: duplicate value found: <unknown> duplicates value on record with id: <unknown>

All attempts to find problem lead to this LWC component and it gives the error even it is the only one appearance.
After I deleted LWC component usage – all works.

Part of flow below:

<screens>
       ...
            <name>Client_Info_Yes</name>
            <extensionName>c:navigateButton</extensionName>
            <fieldType>ComponentInstance</fieldType>
       ...
</screens>

Could someone help with this issue?

Best Answer

The component reference in your flow is currently:

<extensionName>c:navigateButton</extensionName>

This needs to be updated to use the namespace prefix for your package. If your package namespace is "abc", update to:

<extensionName>abc:navigateButton</extensionName>

The prefix c is the no-namespace namespace placeholder.