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

OK so I had those same issues and after some try and error I was able to fix my project. All I did was to delete the Intermediate file from the project, and boom!!! I was able to pack my game. Hope that is of some help. I was careful and made a copy of the original project and that’s the one I use as Guinee pig.