If I remembered correctly, back in time when I just started using Godot (older version), Using NODE.VARIABLE won't work.
Try use function
To get the variable, use function
If that's not the case, it's also likely that it's because in node camera you didn't define the variable
target. So before you get or assign a value to it, make sure in the script attached to camera, you have something like