(SOLVED) 'HeadMountedDisplayTypes.generated.h': No such file or directory

In my Unreal 5.3 plugin build.cs file I have added the “HeadMountedDisplay” module like this:

 PublicDependencyModuleNames.AddRange( new string[]{"Core", "HeadMountedDisplay"});

PrivateDependencyModuleNames.AddRange(new string[{CoreUObject","HeadMountedDisplay"}

I still get the error Cannot open include file: ‘HeadMountedDisplayFunctionLibrary.h’: No such file or directory