Problem with UWidgetBlueprintFactory

Thanks for the reply ,

I’ve already tried to add UMG module but no luck.
You can see in the attached picture my current build.cs

Edit : I’ve put it in public dependencies maybe thats why. I’ll try to put it in private.
Edit 2 : Same error when I put it in private dependencies .