Pointer to incomplete class type is not allowed

Coming late to the party, following a tutorial on writing C++ plugins, without any previous Unreal knowledge, and hitting this error.

I got this error on all sorts of common objects like APawn or UWorld. Searching for these with the method given above is going to give you incredibly many hits, most of the false positives (empty class declarations).

Look in the GameFramework module first.