Incomplete class type FDamageEvent is not allowed

So I found that if I remove the

IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;

line from my Editor.Target.cs it removes the error. I only added this due to a compiler recommendation since I converted my project from UE5 to UE5.1

Any ideas why this would happen? Here’s the entire code:

using UnrealBuildTool;
using System.Collections.Generic;

public class GameEditorTarget : TargetRules
{
	public GameEditorTarget( TargetInfo Target) : base(Target)
	{
		Type = TargetType.Editor;
		DefaultBuildSettings = BuildSettingsVersion.V2;
		IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;
        ExtraModuleNames.AddRange( new string[] { "Game" } );
	}
}
2 Likes