DT
Drizzle TeamBabaYaga
[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 HELPB
BabaYaga•301d ago
Okay, So it was the
tsconfig.json
issue:
I have to change the target, previously it was "es5" idk whyThe official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.3KMembers
View on DiscordWant results from more Discord servers?
More PostsPlaceholders in inserting: db.insert().values(placeholder('example'))Hey, how do I add placeholders inside the values of an insert prepare statement? I get an typeerror Can I add a Unique constraint to a column?I couldn't find an option for that in the docs. I'm assuming Drizzle doesn't support that.
So, coul"Cannot parse date or time" using AWS Data API, aurora postgresI'm trying drizzle-orm (with sst) and aurora pg thru aws data api, when trying to insert a Date valuFiltering against a relationI have a orgs table that have a many to many relation with a users table.
while querying with the f