Afternoon, I'm trying to use a the Map type in a 2.1 script and I'm getting `ReferenceError: "Map" is not defined.`If 2.1 is supposed to be ECMA 2018, this seems like it should work.
b
battk
06/23/2020, 8:36 PM
are you sure its 2.1
c
Chris
06/23/2020, 9:11 PM
It's not, I have it broken up into separate files and now I'm getting "Fail to evaluate script: All SuiteScript API Modules are unavailable while executing your define callback." on the deployment file.
Chris
06/23/2020, 9:11 PM
Argh, netsuite.
Chris
06/23/2020, 9:11 PM
I forgot how I got around this a few moths back.
b
battk
06/23/2020, 9:12 PM
beyond the obvious making sure you aren't using suitescript in your define function
battk
06/23/2020, 9:14 PM
try updating the file using different methods like via sdf or in the ui