Packaging in Shipping Mode - LNK2001 and LNK2019 Errors (ControlRig, Niagara, OptimusCore)

Hi everyone,

I’m creating my own game while experimenting and testing different things. Recently, when I try to package my project in Shipping mode, I get a lot of errors similar to this one:

UATHelper: Packaging (Windows): Module.ControlRig.1.cpp.obj : error LNK2001: unresolved external symbol "class UClass * __cdecl Z_Construct_UClass_UControlRig_NoRegister(void)" (?Z_Construct_UClass_UControlRig_NoRegister@@YAPEAVUClass@@XZ)

These errors appear in Module.ControlRig, Module.Niagara, Module.OptimusCore, and others, all related to LNK2001 and LNK2019, but I can’t figure out how to fix them.

Does anyone know what might be causing this issue and how to solve it?

Thanks in advance!