4.22 Niagara and C++

There you go. The type ‘FVRClientAuthReplicationData’ must be appropriately declared. It is skipping the VRExpansionPlugin in the build, or so it seems. But that is besides the point. In the OP you also mentioned

Have you tried How to Enable the Niagara Effects Plugin in Unreal Engine | Unreal Engine 5.3 Documentation?