Pulse Works Studio
Node not found: "Sprite" (relative to "/root/Player").
get_node() failed because no child named Sprite sits under Player.
Cause
Node.get_node prints this when the relative path does not resolve. The quoted path is the argument, and the second path is the node you called it on. A renamed child, a path that starts one level too high, or an @onready that runs before the child exists all end here. $Sprite is the same call.
Fix
@onready var sprite: Sprite2D = $Sprite2D
func _ready() -> void:
var found := get_node_or_null("Sprite2D") as Sprite2D
if found == null:
push_error("Player is missing Sprite2D")
Related
Godot Dev Tools is a Pulse Works Studio project. All error explainers.