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

[Feature] can you upgrade tsconfig target >= "ES6" #19304

Closed
triajidhan opened this issue Nov 16, 2023 · 4 comments
Closed

[Feature] can you upgrade tsconfig target >= "ES6" #19304

triajidhan opened this issue Nov 16, 2023 · 4 comments
Labels
duplicate en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@triajidhan
Copy link

What problem does this feature solve?

Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error

What does the proposed API look like?

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Nov 16, 2023
@sparr
Copy link

sparr commented Nov 28, 2023

Per microsoft/TypeScript#51909:

What should I use instead?

target: ES3

ES3 runtimes are nearly 100% extinct, so we're removing support for this as an emit target.

Fix: Use target: ES5 as the next-closest thing along with a linter to detect any potentially-problematic ES3 constructs, or use target: ESNext and use a different downleveling emitter.

@septatrix
Copy link

We are currently already at TS 5.3...

@dohuuhuy
Copy link

dohuuhuy commented Feb 2, 2024

how to fix :
Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.

tôi đang cần gấp

@plainheart
Copy link
Member

duplicate of #19560. Please follow #19560.

@echarts-bot echarts-bot bot added the duplicate label Feb 2, 2024
@echarts-bot echarts-bot bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

5 participants