I install a manage package on my scratch org first, found few issues so I uninstalled and uploaded the same metadata as unlock package to test the code, but when I update any apex class getting an error on the custom setting
Invalid Type
It is due to the salesforce recovery plan, we need to wait for 48 hours to permanently delete all components in this package from the org.