"ERROR: Unable to find target 'UE4Game'" - Packaging fails

I was able to fix this problem without migrating by just deleting all the generated folders (Binaries, build, saved, etc) and rebuilding the project.