Community Tutorial: Follow a Spline and Report Distance Along It Using an Actor Component

I followed the tutorial, used the project files but I get compile errors with UE 5.1.
Anyone know what I’m doing wrong?