I'm trying to create an inherited class from NiagaraActor or NiagaraComonent, but it gives an error

I’m trying to create an inherited class from NiagaraActor or NiagaraComonent, but it gives an error, although everything is connected and the system itself can be created. Maybe someone knows how to fix it?

CompilerResultsLog: Error:   MyNiagaraActor3.gen.cpp.obj : error LNK2001: ??ࠧ??襭??? ???譨? ᨬ??? "public: virtual void __cdecl ANiagaraActor::PostRegisterAllComponents(void)" (?PostRegisterAllComponents@ANiagaraActor@@UEAAXXZ).

Same error for me in 4.25 too :confused: