Can't Package C++ Project

@Nodrev.Alsim1 thank you very much! It saved me a lot of time. It seems PrivateDependencyModuleNames or PublicDependencyModuleNames work on UE 5.0 but not 4.27. Your solution made it work on 4.27 and 5.0 for me and it passes RunUAT builds. Though for 5.1 there seems to be this issue and PrivateIncludePathModuleNames does not resolve it.