Can't seem to use UFUNCTION/UPROPERTY with UBlackboardComponent

I’m trying to expose either a variable or setter function for my UBlackboardComponent on a character, however any time I add a UFUNCTION/UPROPERTY to it my build files with errors like

error LNK2019: unresolved external symbol "__declspec(dllimport) class UClass * __cdecl Z_Construct_UClass_UBlackboardComponent_NoRegister(void)" (__imp_?Z_Construct_UClass_UBlackboardComponent_NoRegister@@YAPEAVUClass@@XZ) referenced in function "void __cdecl `dynamic initializer for 'public: static struct UE4CodeGen_Private::FObjectPropertyParams const Z_Construct_UClass_AVisitor_Statics::NewProp_Blackboard''(void)" (??__E?NewProp_Blackboard@Z_Construct_UClass_AVisitor_Statics@@2UFObjectPropertyParams@UE4CodeGen_Private@@B@@YAXXZ)

and

Binaries\Win64\UE4Editor-BYOC-4485.dll : fatal error LNK1120: 1 unresolved externals

If I remove the UFUNCTION/UPROPERTY from either a setter or variable, the error goes away and my code is just fine, so can I not expose something that uses a UBlackboardComponent to blueprints?

Have you added the AIModule to your list of dependencies? Check in the *.build.cs file and look for your PublicDependencyModuleNames. Make sure you have “AIModule” added into that list.

Not specific to this question, but your answer made me realise that if you try to use:

UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Custom")
	FMovieSceneSequencePlaybackSettings PlaybackSettings;

Don’t forget to include the module…
ffs. lol. The error is so unbelievably not helpful with “unresolved symbol” hehehe! WHAT AREEE THISSS?

anyway, for anyone else wondering, the answer was to include module:

“MovieScene”