In my case it was a local SPM package dependency that was missing but referenced by another local spm package.