ERROR BCE0051: Operator + cannot be used with a left hand side of type 'UnityEngine.Vector3' and a right hand side of type 'float'.

Hi, I am working at my game until this error showed up.
I have this code for moving a object:

var straal;
    
    function Update () {
      var straal = 3.0;
      transform.position += straal;
    }

and this error:Assets/Piss.js(5,22): BCE0051: Operator '+' cannot be used with a left hand side of type 'UnityEngine.Vector3' and a right hand side of type 'float'. anyone knows the solution?

You need to choose what value you want to add straal to.
transform.position is a Vector3. It consists of

transform.position.x
transform.position.y
transform.position.z

You can do

transform.position.x +=  stral;
transform.position += Vector3(1,1,1); //This is Vector3(x,y,z);