ConstructorHelpers::FObjectFinderOptional doesn't work with UPaperFlipbook

I think, the shortest way to describe you my problem is to show you the code and error

Code:
ConstructorHelpers::FObjectFinderOptionalMS(TEXT(“StaticMesh’/Game/KK/Cards/Meshes/Bleed_Cube.Bleed_Cube’”));
ConstructorHelpers::FObjectFinderOptionalFB(TEXT(“flipbook reference '”));

	Flipbook = CreateDefaultSubobject<UPaperFlipbookComponent>(TEXT("Character"));
	Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Character3D"));
	
	Flipbook->SetFlipbook(FB.Get());
	Mesh->SetStaticMesh(MS.Get());

	SetRootComponent(Flipbook);
	Mesh->SetupAttachment(Flipbook);

And when i try to compile :

C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\CoreUObject\Public\UObject/ConstructorHelpers.h(149): error C2664: "void ConstructorHelpers::ValidateObject(UObject *,const FString &,const TCHAR *)": cannot convert argument  1 from "T *" to "UObject *"
1>          with
1>          [
1>              T=UPaperFlipbook
1>          ]

I had to translate some of the code, so it’s not 1:1, but i should get the general view.

Notice that, i do the same thing with UStaticMesh and it doesn’t throw an error.

Any idea how to get rid of that problem?
Thanks for any help

Omg, that’s so dumb mistake. Thank you man! I forgot to include UPaperFlipbook, cuz i had UPaperFlipbookComponent included xD Thank you very much

It looks like you are missing imports. Could you please double check that your includes are in order?

Glad it worked. If you are happy with the answer please mark it as accepted