-
-
Notifications
You must be signed in to change notification settings - Fork 863
[FEATURE]: Upgrade esbuild in drizzle-kit to support es2023 target #3118
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
Comments
also - esbuild < 0.22 has security issues and the ~ symbol disallows us to upgrade it manually in our repo... reference: evanw/esbuild#3802 |
We have the same issue, upgrading esbuild to 0.25.1 (latest as of writing) and drizzle-kit to 0.30.5 (latest as of writing) doesn't help. It only works when using target: ES2022 |
Come on, guys. Upgrade it - the whole TS/JS world has moved on long time ago :-) |
Thanks for sharing! I’m facing the same issue. You mentioned it only works when using target: ES2022 — how exactly did you set that target? I'm really struggling with this and can't seem to make it work... |
Hi @Renato-dev13 , you just need to add {
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"outDir": "dist",
"moduleResolution": "Node",
"skipLibCheck": true,
"noUnusedLocals": true,
"strict": true,
"esModuleInterop": true,
"resolveJsonModule": true
},
"include": ["src"]
} |
Hi, @ahalimkara. Thanks for the quick reply! |
+1, just ran into the same issue. |
pLeASe FiX tHiS |
+1 |
1 similar comment
+1 |
Same issue. |
+1 |
1 similar comment
+1 |
+1 |
will be included in the next release |
@AndriiSherman Hey thanks a lot for the fix! I can see that in 0.31.0 the direct dependency on
Which we get dependabot alerts for. I sort of think this must be a separate issue, but since you've worked on this recently, you probably have the best context. The dependency chain in question is Also linking #4045 where people discuss the same issue and propose a possible fix |
x2 |
Dependabot cannot update esbuild to a non-vulnerable version [email protected] requires esbuild@~0.18.20 via a transitive dependency on @esbuild-kit/[email protected] |
Running
npx drizzle-kit generate
errors withInvalid target "es2023" in "--target=es2023"
in my project. Upgrading esbuild to the latest version solved that issue.Describe what you want
Upgrading of esbuild to latest version.
The text was updated successfully, but these errors were encountered: