I'm working on publishing a Unlocked Package. I am using a developer org as a devhub and devloping using SFDX, VS Code, Scratch Orgs, etc... I am able to package the code without a problem, but when attempting to install it on another org (Internal Org) I am getting the following error:
Encountered errors installing the package!,Installation errors:
1) (Demo_Component_Manager) In field: object - no CustomObject named DandBCompany found, Details: Demo_Component_Manager: In field: object - no CustomObject named DandBCompany found
This is referring to the Permission Set, which does not reference DandBCompany. The destination org does not have DandBCompany.
Component Package Manager Repo
When I originally deployed the Unlocked Package, there was a DandBCompany permission in the permission set, but that has since been removed. I have searched for any references of DandB in my project and found none (other than in the .sfdx folder that tracks all the objects in the Scratch org). I don't know why this is happening.