Error: this.client.prepare is not a function
I am trying to build a project using Bun, Hono and Drizzle.
When i am starting the project with this piece of code :
I am encountering this error :
I've run the
drizzle-kit generate:pg
command before and I've checked my connection string many times
Thank you for your help 🙂1 Reply
I had the same issue and it was because I did not use the right import for drizzle. Make sure that the import "import {drizzle} from 'drizzle-orm/d1'"are for the right db. In this case, Cloudflare D1
is for sql-lite and not postgres.