When trying to update a script file from a bundle ...
# suitescript
i
When trying to update a script file from a bundle I get this error: Fail to evaluate script: {"type":"error.SuiteScriptModuleLoaderError","name":"NO_PERMISSION_TO_MODULESCOPE_SAMEACCOUNT_MODULE","message":"You do not have permission to load this module SuiteBundles/Bundle 333976/ Happening if the script version is 2.1, doesn't error when version is 2.0. Thoughts?
i
still doesn't work 😕
b
if you are sure that it works in 2.0 and fails in 2.1, then a bug report is in order
potentially @Ashwin K. can help you out there
a
Thanks @battk! @Ichimoku could you share your script with me?
i
@Ashwin K. just a simple code:
Copy code
/**
 * @NModuleScope Public
 * @NApiVersion 2.1
 * @NScriptType restlet
 */
define([ 'N/search'], function(search) {
    return {
       get : function(parameters) {
          
       } 
       , 
       post : function(parameters) {
 
       }
    }
 });
It's a part of the bundle from sandbox - then I installed it to Prod. When I made changes on Prod, the error was thrown
👍 1
when I change 2.1 to 2.0 or 2.x, the error is not thrown
but I need it to be on 2.1 😕
198 Views