[Solved] Transforming const to the configured target environment ("es5") is not supported yet

So I had a old project, and I copied the DATABASE_URL and on created a basic drizzle project and drizzle.config.ts I got a schema created. Now, I copied the schema.ts file and pasted it into my new (second/another) project. I ran npx drizzle-kit generate:pg but I got the error Transforming const to the configured target environment ("es5") is not supported yet 55 times (55 is the number of tables that I have) 🥹 PLS HELP
1 Reply
BabaYaga
BabaYagaOP•2y ago
Okay, So it was the tsconfig.json issue:
{
"compilerOptions": {
"target": "es2017", // had to change this to "es2017"
// rest of tsconfig.json
}
}
{
"compilerOptions": {
"target": "es2017", // had to change this to "es2017"
// rest of tsconfig.json
}
}
I have to change the target, previously it was "es5" idk why
Want results from more Discord servers?
Add your server