---- SuiteScript ----
I've followed this video to get me starting with SuiteScript and working with typescript / gulp to create and upload my script in Netsuite. I though it'd be up to date since it's from April.
1- When generated, the javascript file looses it's header (jstags), so once uploaded, Netsuite thinks it's a 1.0 Api version file
2- Tried adding the header manually and reuploading the script, but when creating the record, I get the following error:
Fail to evaluate script: {"type":"error.SuiteScriptModuleLoaderError","name":"MODULE_DOES_NOT_EXIST","message":"Module does not exist: N/types.js","stack":[]}
It seems the @hitc/netsuite-tools project page is not available in Bitbucket (https://www.npmjs.com/package/@hitc/netsuite-tools), so I can't debug my first point. But still don't understand what's missing for my script to be deployed in point #2.
https://www.youtube.com/watch?v=xsGxUhYo9WI▾
Pascal Lalonde
07/06/2022, 5:42 PM
Solved #2, had a bad import in the script that was including the 'N/types' in the injection dependencies