google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.59k stars 428 forks source link

Conflicting target ECMA JavaScript versions #935

Open berniegp opened 2 years ago

berniegp commented 2 years ago

This is an issue about documentation.

The advice from https://github.com/google/clasp/blob/master/docs/typescript.md says:

If your Apps Script project is configured to use the V8 Engine, you should set "target": "ES2019" in your tsconfig.json.

This conflicts with https://partnerissuetracker.corp.google.com/u/0/issues/194120497#comment6:

Apps Script V8 runtime supports EMCA2015 standards which mean static class properties are not supported at the moment. There are two workarounds available:

My recent tests with Google Apps Script show that static class properties are not currently supported by the Apps Script V8 runtime.

This project's documentation should not recommend the ES2019 target if this is not fully supported in the runtime.

berniegp commented 2 years ago

I would provide a PR, but I don't know what authoritative source to use for the supported JavaScript version

glebec commented 9 months ago

Minor typo fix for better searchability: EMCA -> ECMA. Recommend changing this issue title. :-)

berniegp commented 9 months ago

Thanks @glebec !