Sometimes in building package versions, you may receive an error message that may be a little difficult to debug especially if your object has a lot of child relationships. If you receive an error message as follows:
Related_User_Lightning_RecordPage: Component [force:relatedListSingleContainer] attribute [relatedListApiName]: Could not find related list [LMI_Supported_User__r] for entity [Directory_User_Relationship__c]
In order to debug and get more information you can do:
DescribeSObjectResult describe = SObjectType.Directory_User_Relationship__c;
for (ChildRelationship relation : describe.getChildRelationships())
{
system.debug(relation);
}
How to fix the JitPluginInstallError error using the SF command line utility
![Could not find related list [X] for entity [X]](https://mld8mmivnxsv.i.optimole.com/cb:4wtd.ca0f/w:930/h:620/q:mauto/rt:fill/g:ce/f:best/https://sfconnect.com/wp-content/uploads/2023/03/0_3-4.png)