Error C2039 packaging plugin with USlateThemeManager

Hello community,

I’m trying to package a plugin I’m making to handle themes in unreal engine. The problem it is giving me is this:

… error C2039: ‘GetUserThemeDir’: is not a member of ‘USlateThemeManager’

C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\SlateCore\Public\Styling\StyleColors.h(145): note: see declaration of ‘USlateThemeManager’

in my main .cpp file I have this in the header: include “Styling/StyleColors.h”

And this is my code that I am using:

FString ThemeDirectory = USlateThemeManager::Get().GetUserThemeDir();

I hope you can help me, thank you very much!!

I have a similar issue :frowning:

Greetings @TheRealPfloder and @GlowlineStd

I never saw a post from the original poster on finding a solution to this. But, there was a problem in VS a while back that I think got resolved in an older update. The first place I’d start is updating framework. Is this happening in UE? If so, which version?