how do i Fix shadow.js BCE0019

Hello ,
How can fix this
Assets/shadow.js(9,19): BCE0019: ‘active’ is not a member of ‘UnityEngine.Transform’.

Unity 5.4.1

#pragma strict
var target:Transform;
function Start () {
	
}

function Update () {

	if(target.active){
		gameObject.transform.position.x= target.transform.position.x;
		gameObject.transform.position.z= target.transform.position.z;
	}
}

If you read carefully, you can see, that the error says it all:

In line 9, you call upon active of your target, which is a Transform. From MonoDevelops autocompletion or Unity’s documentation you can see, that there’s no active value for Transform.
What you probably may need is:

if (target.gameobject.activeSelf)