Can't drop nodes because script 'main_character.gd' does not inherit Node.

Godot Version

4.6.1

Question

I’ve had no problem with dropping nodes into script before but all of a sudden I started getting this error and I have no idea why. I saw the same issue in Godot 4.2 dev3 https://github.com/godotengine/godot/issues/81294 but I’m using 4.6.1 and it was “closed” a long time ago. Tried deleting the node, restarting pc and Godot, reinstall editor, but nothing worked.

Please help me solve this problem, it’s really bugging me.