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

Unrecognized target environment "ES2024" #4004

Open
RazerM opened this issue Dec 16, 2024 · 0 comments
Open

Unrecognized target environment "ES2024" #4004

RazerM opened this issue Dec 16, 2024 · 0 comments

Comments

@RazerM
Copy link

RazerM commented Dec 16, 2024

I am using esbuild 0.24.0 via Vite, I get the warning/error Unrecognized target environment "ES2024" which seems to come from

switch lowerValue {
case "es3", "es5", "es6", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021":
result.Settings.Target = config.TSTargetBelowES2022
case "es2022", "es2023", "esnext":
result.Settings.Target = config.TSTargetAtOrAboveES2022
default:
ok = false
if !helpers.IsInsideNodeModules(source.KeyPath.Text) {
log.AddID(logger.MsgID_TSConfigJSON_InvalidTarget, logger.Warning, &tracker, source.RangeOfString(valueJSON.Loc),
fmt.Sprintf("Unrecognized target environment %q", value))
}
}

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

No branches or pull requests

1 participant