jhayczee09
09/01/2024, 7:06 AMCeligo AI
09/01/2024, 7:06 AMAI generated answer (using internal Slack threads):The error
org.mozilla.javascript.EcmaError: ReferenceError: "Promise" is not defined.
is occurring because Promises are not part of SuiteScript 2.0. They were introduced in SuiteScript 2.1. If you want to use Promises, you will need to upgrade your SuiteScript version to 2.1 or later.
For the second error org.mozilla.javascript.EcmaError: ReferenceError: "i" is not defined.
, it's hard to provide a definitive answer without seeing the full context of your code. However, the error message suggests that there's a reference to a variable "i" that hasn't been defined in your script. Make sure all your variables are properly defined and that there are no typographical errors in your code.
The third error org.mozilla.javascript.EcmaError: TypeError: Cannot find function error in object [object Object].
is likely due to a mismatch in your define parameters. Make sure that the modules you're requiring match up with the parameters in your function. In your case, there seems to be an extra comma which might be causing the issue.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
09/01/2024, 7:06 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.880412877
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.85544765
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831236899
Celigo AI
09/01/2024, 7:06 AM