Hi [mention|Gq2EBq4mjYYjdAPtpLPg8Q==], please make sure to use correct code tags when posting your code snippets to make it more readable.
Navmesh.GetAreaByName("areaName")
will return -1 if the area was not found. You could check what is the return value of that method for your area name to make sure that it’s correct.