How do I properly import ProceduralMeshComponent to my project?

I have been trying to generate terrain using ProceduralMeshComponent but when I try to include the header file it says
> cannot open source file “ProceduralMeshComponent.h”
The GENERATED_BODY() is also throwing an error saying
> this declaration has no storage class or type specifier

I have attached my build.cs and .uproject files. After updating these files I rescanned the project by right clicking on my project name and the clicking rescan solution.

I have checked that the plugin for ProceduralMeshComponent is enabled.

I am new to unreal and know what to try next.