```/** * @NApiVersion 2.0 * @NScriptType BundleI...
# suitescript
m
Copy code
/**
 * @NApiVersion 2.0
 * @NScriptType BundleInstallationScript
 */
define([], function () {
  function checkPrerequisites() {
    log.debug("all good, proceed with the uninstallation or update");
  }
  return {
    beforeUpdate: function beforeUpdate(params) {
      checkPrerequisites();
    },
  };
});
s
The only thing that stands out is a named function after the beforeUpdate key. Try just using
beforeUpdate: function(params) {
k
Or just beforeUpdate: checkPrerequistes
✔️ 1
b
make sure you named the bundle installation script file correctly