Error: Invalid incomplete type

try adding include to
#include “CoreUObject.h”