unresolved external symbol when using UUserWidget

Have you tried this?

#include "Blueprint/UserWidget.h"

Its generally the only thing I include. Hope it helps! Make it a great day!