Error Creating TextureRect with Custom Texture: Invalid assignment of property or key 'texture' with value of type 'CompressedTexture2D' on a base object of type 'Nil'

I’ve been creating a couple making mini game using Godot 4.3, but i’ve encountered a error trying to render all participants.

Here’s my Code Structure & Code:
Participant Select Component


Main Game Root:


So, my current problem is, if i try to run the game, it crashes with the error:
Invalid assignment of property or key ‘texture’ with value of type ‘CompressedTexture2D’ on a base object of type ‘Nil’.
I’ve been trying to create a work around for it, but the only solution i found is to create a wait frame solves the problem.
Wish i could get some help for work arounds on it.

_ready() and @onready happen when the node enters the tree, which as I understand may be before other things have entered the tree. So, %Avatar may not be initialized yet.

My advice would be, you’re already creating most of the avatars in code anyways, just create the local avatar the same way.