node-google-apps-script icon indicating copy to clipboard operation
node-google-apps-script copied to clipboard

"Bad request" issue when uploading: Use of reserved words as object properties

Open brainysmurf opened this issue 8 years ago • 2 comments

In node, the following js does not result in any errors:

obj = {};
obj.const = {};
obj = {};
obj.function = {};

However, in App Script it does. Line 2 in both examples would generate error "Missing name after . operator" in apps script online editor. Nor is this detected in any linters. Unexpected consequence is that we get "Bad Error" when attempting to upload.

Documenting for reference; the problem really isn't with this package. Hopefully documenting here may save hours of head-scratching.

brainysmurf avatar Apr 23 '17 07:04 brainysmurf

The following file names trigger a similar error:

  • debug.html
  • debug.js

Able to upload and sync back up with Google Drive using node-google-apps-script once renamed.

old name: debug.html | debug.js new name: template.debug.html | app.debug.js

climateamante avatar Jul 10 '17 09:07 climateamante

It's not the current app. The best way is to check files names and code in the native IDE screenshot from 2017-07-10 15-51-42

oshliaer avatar Jul 10 '17 12:07 oshliaer