Anyone ever see this error. Im using SS2.1 but not...
# suitescript
m
Anyone ever see this error. Im using SS2.1 but not sure if thats related
Copy code
{
  "type": "error.SuiteScriptError",
  "name": "TypeError",
  "message": "execute on foreign object failed due to: UnsupportedTypeException",
  "stack": [
    "Error"
  ],
  "cause": {
    "message": "execute on foreign object failed due to: UnsupportedTypeException",
    "stack": "TypeError: execute on foreign object failed due to: UnsupportedTypeException"
  }
}
b
that is new, you know the deal with 2.1, if it doesnt work try 2.0
m
Not 2.0 😭
s
or try TypeScript, which gives you 2.1 features for a few years now
m
@battk i transpiled to es5 and im still seeing that error
b
as in your using 2.0?
or use es5 with 2.1
m
scratch that actually, im not seeing any errors come through now. I transpiled down and swithched the jsdoc tags to 2.x