() Pointer to incomplete class type is not allowed

The lack of autocomplete is killing me as a result of this weird error. The solution posted to this question elsewhere is to import “Engine/World.h”, which I have clearly done. Also, this code compiles without issue. What am I missing?

Ignore it, it’s IntelliSense bugging out as UE4 tool set and APIs use lot of unconventional tricks that this system is not used to. I also reason why guides recommend to disable error list and relay on compilation errors.

Lot of people recommand Visual Assist plugin which works better with UE4

Just a IntelliSense bug.Lack of IntelliSense is something you got to get used too.

I would also just add the actor and actor component headers along with core minimal instead of the entire engine header since I don’t think you need all that extra stuff.

#include "CoreMinimal.h"
#include "Runtime/Engine/Classes/GameFramework/Actor.h"
#include "Runtime/Engine/Classes/Components/ActorComponent.h"

It should still compile but save you a bunch of bloated headers.