Has anyone had issues with client scripts uploadin...
# suitescript
c
Has anyone had issues with client scripts uploading via SDF when using template literals or arrow functions? This only happens on client script files, not on event or any server side script. I was under the impression that client scripts supported ES6. What is odd is, sometimes the file will upload initially and work, but later SDF will start throwing errors when I make a change to the file. I get these errors below Template literals:
There was a problem when uploading the file. Details: Syntax error: illegal character.
Arrow functions:
There was a problem when uploading the file. Details: Syntax error: syntax error.
c
Seem to have been loads of problems reported on here with SS 2.1 client scripts. I probably wouldn't use it for client scripts over 2.0 just yet
c
Are you saying to just change the line at the top from:
Copy code
@NApiVersion 2.x
to
Copy code
@NApiVersion 2.0
Unfortunately that doesn’t make any difference when I deploy via the IDE
c
2.0 is ES5
b
Ya @Cory Weiner SuiteScript 2.1 isn't supported in Client Scripts yet.
Still 2.0 unfortunately