``` /** *@NApiVersion 2.0 *@NModuleScope Target...
# suitescript
m
Copy code
/**
 *@NApiVersion 2.0
 *@NModuleScope TargetAccount
 */

define(['N/record', 'N/search'],
    function (record, search) {

            function TODO() {
                   return true;
            }

            return {
                    TODO: TODO
            };
    })
my script file is called config.js but i seem to get this error: @NScriptType is mandatory for SuiteScript 2.x entry point scripts.
s
trying leaving off those other
@N
header comments
b
When do you get this error? When trying to create the script record? exactly what the message says, you have to put
* @NScriptType UserEventScript
in your top comment, for example, depending on what kind of script record you are trying to create
or if you are just trying to upload it then get rind of NMModuleScope
m
yeah, sorry should have said, this is a custom module script. I get the error when creating the script record
s
you should not be creating a script record unless this script is one of the entry points, if it is then you should be putting that entry point type at the top
m
right, so I can just create it and leave it as a file and then use other scripts to call it?
s
yes