ERP Lover
04/19/2024, 12:55 PMSuiteScripts/
. When another account (unrelated to mine) installs the same SuiteBundle it ends up in SuiteBundles/
with the Bundle ID as the folder name and when the scripts are running they are failing to find the JS files being referenced. Like the following
Installation Script Error
MODULE_DOES_NOT_EXIST
{"type":"error.SuiteScriptModuleLoaderError","name":"MODULE_DOES_NOT_EXIST","message":"Module does not exist: /SuiteBundles/mylibrary.js","stack":[]}
What I'm doing wrong here and why does the install differ between production environments in terms of where it gets installed?Sandii
04/19/2024, 1:01 PM./mylibrary
if you need to go up a directory and go down into another folder do like ../someOtherFolder/mylibrary
ERP Lover
04/19/2024, 1:02 PM../mylibrary.js
.ERP Lover
04/19/2024, 1:04 PMbundleinstallationscript
, so maybe that's a problem? That it's running outside the directory context?Sandii
04/19/2024, 1:05 PMERP Lover
04/19/2024, 1:10 PMERP Lover
04/19/2024, 1:38 PMbundleinstallationscript
worked fine now, but the rest of the scripts had the same problem now. So I seem to have issues referencing files. Even though I'm doing it relatively like mentioned above 🤔erictgrubaugh
04/19/2024, 2:47 PMerictgrubaugh
04/19/2024, 2:48 PMerictgrubaugh
04/19/2024, 2:49 PMERP Lover
04/19/2024, 2:51 PMerictgrubaugh
04/19/2024, 2:53 PMERP Lover
04/19/2024, 2:55 PMSuiteScripts/
and for the other account it was installed under SuiteBundles/
. I'm assuming this is happening because my production account is technically the owner of the bundle, but not sure 🤷Mike Robbins
04/19/2024, 3:42 PMbeforeInstall
and when NetSuite tries to load your script to execute this entry point, it would also try to load any referenced module files. This didn't seem to work because those module files haven't been installed yet.ERP Lover
04/19/2024, 3:44 PMafterInstall
though, by then everything should be "in place" in my opinion. But it doesn't look it.