Updated drizzle-kit -> Error: Cannot find module 'drizzle-orm/pg-core'
I updated drizzle from:
to
I updated my config to use the new
defineConfig
method and changed the connectionString
to uri
but now I am getting this error when I try to run drizzle-kit:
Error: Cannot find module 'drizzle-orm/pg-core'
I dont use postgres, my driver is mysql2
using PlanetScale as DB provider.
my package.json - I am using bun run
incase it matters:
5 Replies
Maybe you imported the drizzle function from "pg-core" by mistake?
I reproduction repo would be great to investigate
hmm nope, if that were the case, shoudn't it also fail in the previous version?
will only be able to do this end of the week. But if you are down, bootstrap a project with https://create.t3.gg/ and update to latest drizzle version.
You can try deleting your node_modules, lock file and installing everything again
I ended up switching to postgres, which then has thrown a missing "pg" dependency error. I installed it as a dev dependency now even though the rest of the app works without it. I assume studio needs it anyways but doesnt have it bundled itself?