GetLifetimeReplicatedProps in comment causes compile error

That specific error is because the compile see the function in your .cpp file but doesn’t know what to do with it since it was not declared in the source file. Adding the function declaration should solve the error