Why is "UUserWidget is not a type name" when I try to declare the variable?

That is the full path for the include in ‘MyProjectName.h’(which I have in place already)

I was refering to the include in the created widget header.(InventoryWidget in the tutorial IIRC)

In the tutorial InventoryWidget’s include reads:

#include "Blueprint/UserWidget.h"

I Tried your suggestion anyway, and all it did was move the error to:

#include "InventoryWidget.generated.h"