Hi All, I bundled my solution and install it to an...
# suitescript
k
Hi All, I bundled my solution and install it to another account and customized it(SuiteScript 2.0), I tried to load custom module on which is already exists on account but it is saying "Fail to evaluate script: {"type":"error.SuiteScriptModuleLoaderError","name":"NO_PERMISSION_TO_MODULESCOPE_SAMEACCOUNT_MODULE","message":"You do not have permission to load this module SuiteScripts/nexWare/Libraries/moment-with-locales.min.js, it has an @NModuleScope of SameAccount which restricts its availability to customization objects created in account(s) .","stack":[]}" Script:
define([
  
'N/runtime',
  
'N/search',
  
'N/record',
  
'../Libraries/moment-with-locales.min.js',
  
'N/email',
  
'N/render',
], 
runScript);
_function_ runScript(runtime, search, record, moment, email, render) {
  
RUNTIMEMDL = runtime;
  
SEARCHMDL = search;
  
RECORDMDL = record;
  
MOMENTMDL = moment;
  
EMAILMDL = email;
  
RENDERMDL = render;
  
_return_ {
    
getInputData: _function_ (context) {
      
_var_ LOG_TITLE = 'getInputData';
      
_try_ {
probably of extra importance:
If you do not set the scope, SameAccount applies as the default.
e
Interesting; that seems very annoying for third party libs