I have created few PCF controls, and i have created single solution zip file for all the controls by running below commands.
pac solution init --publisher-name DefaultPublisher21cdcsandbox --publisher-prefix cdc
pac solution add-reference --path F:\Controls\Controls\CustomerJourneyBoard
pac solution add-reference --path F:\Controls\Controls\StakeholderEngagement
pac solution add-reference --path F:\Controls\Controls\LeadBoard
msbuild /t:build /restore
Solution was build successfully and i have imported into my sandbox environment. Now i have few changes in one of my control CustomerJourneyBoard. So i have used pac pcf push command to do so. But i want to again built my complete solution again.
I have used below command to rebuild the solution in single zip file.
msbuild /t:rebuild
From the sandbox environment i have removed the reference of CustomerJourneyBoard and try to import the new solution but i am getting below error.
Cannot add a Root Component cdc_CustomerJourneyBoard.CustomerJourneyBoard of type 66 because it is not in the target system.
Earlier this used to work from me but not anymore.
Any idea anyone for this ?