Error Server targets are not currently supported from this engine distribution in UE 4.26.1

hi guys! im getting error building Server target in UE 4.26.1. i have noticed that building a proejcto with the 4.26.2 from github this doesn’t happen. but, that version is currently not stable. is there any known solution for the 4.26.1 version?

my build.cs:

using UnrealBuildTool;
using System.Collections.Generic;

public class SpaceshipWarServerTarget : TargetRules
{
    public SpaceshipWarServerTarget(TargetInfo Target) : base(Target)
    {
        Type = TargetType.Server;
        DefaultBuildSettings = BuildSettingsVersion.V2;
        ExtraModuleNames.Add("SpaceshipWar" );
    }
}

I hope someone can help me, thanks!

It would be good to add error messages as well.

sorry i was not clear, the message error is " Server targets are not currently supported from this engine distribution"

I have the same error as you :sob:

Mee too!There three message error in my log! :cold_sweat:

Are you building from source on GitHub? Dedicated servers require this: Setting Up Dedicated Servers | Unreal Engine Documentation

Thank you! :grinning:

But I failed to generate when I did. I tried this many times.