There was an issue with the calling of the client script from a suitelet that had been installed from a bundle. The issue was resolved by changing the “@NModuleScope SameAccount” to “@NModuleScope Public”. And also checking the website feature under the web presence tab in enable features.