I just found out that there are issues in regards ...
# suitescript
b
I just found out that there are issues in regards to using clientScriptModulePath with SuiteScript 2.1 in a Suitelet. It just doesn’t work and errors with the message that the module can’t be found. Whereas when I change the SuiteScript version to 2.0, everything works. Has anyone encountered this too?
s
From the help...Supported script types for SuiteScript Version 2.1 are [[SCHEDULED, MAPREDUCE, SCRIPTLET, RESTLET, USEREVENT, SDFINSTALLATION, TESTPLUGIN, BUNDLEINSTALLATION, PORTLET, MASSUPDATE, PLUGINTYPEIMPL, ACTION]]. @Budy Sutjijati
b
@Sandii -> “…and it supports all server-side script types (such as user event scripts, scheduled scripts, and Suitelets).”
message has been deleted
s
@Budy Sutjijati yes suitelet is supported, client is not... which is what you said causing the error
b
No, the Client Script is not using 2.1 since that is indeed not supported
it’s the Suitelet that was using 2.1
while switching back to 2.0 in the Suitelet the clientScriptModulePath worked again