Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playground: tsconfig.json editor shows 'target: ES3' when URL uses target=99 #1437

Closed
mjpieters opened this issue Dec 21, 2020 · 1 comment
Closed
Labels
Playground Issues that affect the Playground

Comments

@mjpieters
Copy link

Opening the 'TS Config' option on any playground URL with target=99 shows Target: ES3 instead.

TypeScript__TS_Playground_-_An_online_editor_for_exploring_TypeScript_and_JavaScript

Repro:

Compare these two URLs:

and open the TS Config menu on either. The first will show ES3 as the selected target while the second correctly shows ES2020.

Expected behavior:

The TS Config Target dropdown should reflect the selected target correctly, for all possible targets.

Actual behavior:

Only when using target=99 does the dropdown reflect the wrong choice. For all other possible target values, the dropdown shows the correct value.

Note that the compiler appears to be correctly configured, e.g. a playground link demonstrating a TypeScript bug with involving a ESNext-only feature only highlights 'compact' as a problem (the [subject of my bug report that led to this one) while any target option other than ESNext / Latest would produce more errors.

@mjpieters
Copy link
Author

Duplicate of #1136. Mea Culpa!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Playground Issues that affect the Playground
Projects
None yet
Development

No branches or pull requests

1 participant