jkabot
01/18/2018, 5:41 PMmoment-timezone-with-data
it is trying to load moment
, but from the root directory instead of wherever you have it.
you'll need to use a config file to tell the define function where to look whenever it sees moment. you specify the config file in the block comment of your script entry point.
/*
* @NScriptType UserEventScript
* @NApiVersion 2.x
* @NAmdConfig /SuiteScripts/amdconfig.json
*/
and in your amdconfig.json
{
"paths": {
"moment": "/path/to/moment/in/your/cabinet/moment"
}
}