How do I fix this unresolved externals error when I add UPROPERTY?

Hi, I’m pretty new to Unreal Engine and c++. I have a class called NPC. In NPC.h, I have a protected property like this:

UPROPERTY(VisibleAnywhere)
TSoftObjectPtr<USUDSScript> DailyDialogue;

When I try to build the solution, I get an unresolved externals error:

2>   Creating library C:\Users\tyler\Documents\Unreal Projects\SudsProTest\Intermediate\Build\Win64\x64\UnrealEditor\Development\SudsProTest\UnrealEditor-SudsProTest.sup.lib and object C:\Users\tyler\Documents\Unreal Projects\SudsProTest\Intermediate\Build\Win64\x64\UnrealEditor\Development\SudsProTest\UnrealEditor-SudsProTest.sup.exp
2>NPC.gen.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class UClass * __cdecl Z_Construct_UClass_USUDSScript_NoRegister(void)" (__imp_?Z_Construct_UClass_USUDSScript_NoRegister@@YAPEAVUClass@@XZ) referenced in function "void __cdecl `dynamic initializer for 'public: static struct UECodeGen_Private::FObjectPropertyParams const Z_Construct_UClass_ANPC_Statics::NewProp_DailyDialogue''(void)" (??__E?NewProp_DailyDialogue@Z_Construct_UClass_ANPC_Statics@@2UFObjectPropertyParams@UECodeGen_Private@@B@@YAXXZ)
2>C:\Users\tyler\Documents\Unreal Projects\SudsProTest\Binaries\Win64\UnrealEditor-SudsProTest.dll : fatal error LNK1120: 1 unresolved externals

If I remove the UPROPERTY(VisibleAnywhere) from the header file, it compiles just fine. I tried googling this and found that most of the time, the issue is that something is missing in the build.cs file. But I don’t think that is the case for me. The class USUDSScript comes from a plugin and I have that plugin referenced in my build.cs file already.

Any ideas on this error?