In Extension file sometimes the error “ServiceController not found” will occur
So solve this issue
1. Go to manifest.json and change the entry point to “ServiceController.js”.
The example is show below
"ssp-libraries": {
"entry_point": "Modules/Myaccount/SuiteScript/Myaccount.ServiceController.js",
"files": [
"Modules/Myaccount/SuiteScript/jnj.Myaccount.Myaccount.js",
"Modules/Myaccount/SuiteScript/Myaccount.ServiceController.js"
]
},
2. Then change name in entry file in suite script at define function
By removing the vendor and name of extension,
For example
define('jnj.Myaccount.Myaccount'
, [
'Myaccount.ServiceController', 'SC.Model', 'Application', 'Utils',
'underscore','SC.Models.Init','Profile.Model'
]
,
After this, deploy the extension,
In This, whatever changes done in suite script file, it won’t run in local so we have to deploy the extension to know the changes