Can't create widget within another widget

Hi. I’ve run into an annoying problem. When I create a widget from within another widget, the created widget is InValid. When I create a widget from my actor component, there are no problems at all. There is no difference in the way I create the widgets between the 2 classes.

Widget I’m spawning from
void UInventoryWindow::NativeConstruct()
{
Super::NativeConstruct();
TSlot = CreateWidget(GetWorld(), SlotClass);//TSlot is an UItemSlot ptr. UItemSlot is the widget
//class. SlotClass is the child class of UItemSlot that I set through bp. SlotClass is valid.
}

The actor component does it exactly the same way but with a different class to spawn.

I can provide more info if needed. Thank you!