IDJS (UXP) "glue code.jsx" Include Error
I am trying to convert a fully functional .jsx script over to .idjs for use with InDesign server, and to take advantage of the ES6 support.
When I run the script from VS Code it works perfectly. However, if I try to run it from InDesign, or via outside script it throw the following error:
UXPScript Error!
Error String: SyntaxError: Private field '#include' must be declared in an enclosing class.
The error is referring to the #include: "glue code.jsx" at the top of the file. This line is included in every sample script Adobe provides for working with XML.
Unfortunately, if I try to convert this into a class it throws a new error telling me that I have made improper use of the reserved term "class".
Anybody know how to get this to work?
