Pre send Hook Deployment issue

``I'm trying to deploy this pre send script but encountering an error while creating the scripted record -@NScriptType is mandatory for SuiteScript 2.x entry point scripts.
I refered to the smaples on github it does not contain an entry point, I'm not sure what i'm missing here.

Matrixitem.txt (8.3 KB)

How are you trying to create this in NetSuite? You don't need to create a script record or script deployment, you just need to upload the file to the file cabinet and copy the file id.