Pointer to incomplete class type is not allowed

I had a warning in VS giving me this error, it was not blocking.
To fix this, i just added a new constructor to my class looking like this:

.h

class MYPLUGIN_API MyActor : public AActor
{
public:	
	MyActor (const FObjectInitializer& ObjectInitializer);
}

.cpp

MyActor::MyActor (const FObjectInitializer& ObjectInitializer):
	Super(ObjectInitializer)
{
}