You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We get completions for "target" that include "ES2023".
If we accept that, we get the following error:
"error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'."
I think I was wrong in that one and we should just have targets for every named spec version; even if in practice a few are identical syntaxwise for some stuff, it's way less confusing.
Reacted by Bruce Pascoe, Martin Johns, whzx5byb, Andrew Branch, Gabriela Araujo Britto, hyperbola, Luis Miguel Mejía Suárez, Chenfeng Bao, Ricki Runge and Felipe Plets
Reacted by rubiesonthesky and Luis Miguel Mejía Suárez
Activity
whzx5byb commentedon Mar 7, 2024
Duplicate of #56303?
[-]Missing ES2023 target[/-][+]Invalid ES2023 target suggested[/+]gabritto commentedon Mar 7, 2024
Ron Buckton (@rbuckton) suggested we should add
ES2023so that we can includeES2023as a lib if your target isES2023, but Ryan Cavanaugh (@RyanCavanaugh) said we shouldn't have it as a target, so I just wanted to double check.If we do want to remove it, we need to remove it here.
RyanCavanaugh commentedon Mar 7, 2024
I think I was wrong in that one and we should just have targets for every named spec version; even if in practice a few are identical syntaxwise for some stuff, it's way less confusing.