Can't compile VR project for UE 5.3

Programming & Scripting C++ Platform & Builds editor

I can’t update my C++ VR project to UE 5.3,
it seems that the Engine can’t find a header file, even though I have the proper modules included, in previous version I did not have any issues,
it may be related to changes made to OpenXR,
what should I update ???

Error message:
C1083 Cannot open include file: ‘HeadMountedDisplayFunctionLibrary.h’: No such file or directory

It looks to be related to this change:
UE-181824 Move HeadMountedDisplay files to XRBase plugin to reduce UE overhead.

So in your [project].Build.cs make sure “XRBase” module is there, e.g.

PrivateDependencyModuleNames.AddRange(new string[] { "Json", "JsonUtilities", "HeadMountedDisplay", "NavigationSystem", "XRBase" });