I need to add a new class to an existing 2GP managed package. I get the following error when I attempt to create the package using the SF CLI. How do I resolve this issue when I attempt to build it?
We couldn’t create this package version because new components were added or existing components were deleted. Remove components {ApexClass=[ckz_PIM_ScheduledCacheRebuild]} from the package version, and create the package version again.
UPDATE
The current managed package that was released was 1.0.2
I modified my sfdx-project.json so that the ancestorId is set to the 1.0.2 package id.
The versionNumber is set to 1.0.3.0
I still get the same error message when attempting to create the managed package. Any help would be appreciated!