It is possibly it is not included in your Game.Build.cs file. Try
PublicDependencyModuleNames.AddRange(new string[] {
"GameplayTasks",
"GameplayTags",
"GameplayAbilities"
});
Adding it there would equivalent to adding a bulk of headers.