ResolveMessage error when trying to run a query with drizzle postgres and bun
I have created a bun project with bun 1.0.6 and added drizzle-orm and postgres. I am trying to execute a basic query with this code:
But when I run it with
bun run index.ts
, I get this error:
Anyone know what might be wrong here?9 Replies
Hi did you ever figure this out? I'm also trying to use Bund and Drizzle together, but I'm having the same error when I try and deploy a drizzle-kit migration
+1 facing the same issue
facing this issue, on code that worked 2 weeks ago !
Raised an issue with bun
https://github.com/oven-sh/bun/issues/6555
GitHub
Drizzle + postgres not working with bun . Getting error: ResolveMes...
What version of Bun is running? 1.0.6 What platform is your computer? Darwin 21.6.0 x86_64 i386 What steps can reproduce the bug? package.json { "name": "drizzlebuntest", "...
I was able to reproduce, I added a quick repro. Thanks for raising the issue there
Thanks!
GitHub
GitHub - porsager/postgres: Postgres.js - The Fastest full featured...
Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare - GitHub - porsager/postgres: Postgres.js - The Fastest full featured PostgreSQL client for Node.js, ...
Well, if it didn't work with node, I would agree. But it works with node
It's a bun issue
Oh yes, I agree. I meant bun's issue is with working with postgres and not drizzle. This issue might be affecting us transitively.
Just use pg for the time being. or Node