Is anybody having issues uploading SS2.1 ClientScr...
# suitescript
s
Is anybody having issues uploading SS2.1 ClientScript files using async entry point functions? More specifically -- I am using async pageInit and fieldChanged functions which work in a different sandbox environment now. However, when I try to use the SDF (or UI for that matter) to create the script record, I receive the following validation error
SuiteScript 2.1 entry point scripts must implement one script type function.
My JSDoc FWIW
I receive the same validation error when I do this, which previously did the trick for me when working with 2.0 scripts
If I comment out ALL of my code in the file except for the above, and upload the file, I can create the script record then un-comment out the code and then finally deploy it into the sandbox environment
w
I think the async/await you have in your code are not necessary. Refer to client-script type in help guide for the right entry point for script types.