Activate SuiteCommerce Advanced Extension
When I tried to add a SuiteScript file in the SuiteScript2 folder, I am getting this error while activating the extension.
{“type”:”error.SuiteScriptError”,”name”:”14978″,”message”:”Invalid define call, define should only be called once per module. Define calls found at the following line numbers: tmp_ssp_libraries_ext.js 34, 69, 108, 136, 167, 205, 231, 262″,”stack”:[“createError(N/error)”],”cause”:{“message”:”Invalid define call, define should only be called once per module. Define calls found at the following line numbers: tmp_ssp_libraries_ext.js 34, 69, 108, 136, 167, 205, 231, 262″,”stack”:[“createError(N/error)”,”reduce(/SuiteBundles/Bundle 455185/ExtensionMechanism.Server/CompilersMapReduce/SspLibrariesCompilerMapReduce.js:295)”],”name”:”14978″},”id”:””,”notifyOff”:false,”userFacing”:true}
Here is my code: