UBT Unable to determine module type

This was the solution for me!!!
The section “Plugins” was missing in my .uproject file although we are using perforce. strange