Why can't my scene load after declaring 'preload' function?

Godot Version

4.2.1 stable


idk if this is a godot 4 bug but everytime i preload a scene, if you try to open that scene from the editor, it says this:

Failed to instantiate scene state of “res://scenes/card.tscn”, node count is 0. Make sure the PackedScene resource is valid.

one more thing is this:
Failed loading resource: res://scenes/card.tscn. Make sure resources have been imported by opening the project in the editor at least once.

what is going on? it only happens when you use ‘preload(“res://scene.tscn”)’

pls help