so when you load `moment-timezone-with-data` it is...
# suitescript
j
so when you load
moment-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.
Copy code
/*
 * @NScriptType UserEventScript
 * @NApiVersion 2.x
 * @NAmdConfig /SuiteScripts/amdconfig.json
 */
and in your amdconfig.json
Copy code
{
  "paths": {
    "moment": "/path/to/moment/in/your/cabinet/moment"
  }
}