You need to add the “NavigationSystem” module to your Build.cs
And to use FNavigationSystem::GetCurrent
you need to specify the type
#include "NavigationSystem.h"
UNavigationSystemV1* NavigationArea = FNavigationSystem::GetCurrent<UNavigationSystemV1>(this).