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

unknown variant ESNext #9287

Closed
Enteleform opened this issue Jul 19, 2024 · 4 comments · Fixed by #9329
Closed

unknown variant ESNext #9287

Enteleform opened this issue Jul 19, 2024 · 4 comments · Fixed by #9329
Labels
Milestone

Comments

@Enteleform
Copy link

Enteleform commented Jul 19, 2024

Describe the bug

I am experiencing the same bug described in #8516, which was supposed to be resolved by #8653.

When set compilerOptions.target: "ESNext" (title case), I got error:

[vite] Internal server error: unknown variant `ESNext`, expected one of `es3`, `es5`, `es2015`, `es2016`, `es2017`, `es2018`, `es2019`, `es2020`, `es2021`, `es2022`, `esnext` at line 1 column 241 Plugin: swc

Relevant Dependencies, up to date as of today:

"unplugin-swc": 1.5.1
"@swc/core":    1.7.0

Playground link (or link to the minimal reproduction)

https://stackblitz.com/edit/vitejs-vite-pezqps?file=package.json

Expected behavior

swc should accept ESNext and other PascalCase variants, as defined in https://json.schemastore.org/tsconfig.json

Version

1.7.0

@Enteleform
Copy link
Author

@kdy1

@kdy1
Copy link
Member

kdy1 commented Jul 19, 2024

Use EsNext instead

@kdy1 kdy1 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2024
@Enteleform
Copy link
Author

Enteleform commented Jul 19, 2024

@kdy1

That does not match the JSON schema specification for tsconfig.json, which is implemented in IntelliSense as well:
image

@swc-bot
Copy link
Collaborator

swc-bot commented Aug 24, 2024

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Aug 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

3 participants