Project monitor | push throwing cannot be marked as external""

Hay Team. This is regarding the Synthetic monitoring, we were trying out project monitors . We followed all the steps but we ar getting " .ts file cannot be marked as external" on doing the npx push command. Can any one help me with this ?