Hi! Is anyone familiar with this module error?: `{...
# suitescript
t
Hi! Is anyone familiar with this module error?:
{"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"","stack":[]}
I have been able to debug and narrow it down to loading the library module I have, but I’m not having much figuring out the root cause
a
Can you share the define call in your module?
t
example
@Albert Margarit (NS Eng Lead), the
Process
lib is causing the issue
a
Can you copy the code here?
t
define([‘./lib/process’, ‘./lib/constants’], function(PROCESS, CONSTANTS) { function afterSubmit(context) { } return { afterSubmit : afterSubmit } });
a
I see. Does process and constants have any dependency?
How does the process file look like?
t
Process looks like this:
define([‘N/record’, ‘N/search’, ‘N/task’, ‘./constants’], function(record, search, task, CONSTANTS) { } );
j
FWIW I see UNEXPECTED_ERROR intermittently, while anything causes NetSuite to do any kind of I/O, including loading files in the define call.