Updated drizzle-kit -> Error: Cannot find module 'drizzle-orm/pg-core'

I updated drizzle from:

    "drizzle-orm": "^0.29.1",
    "drizzle-kit": "^0.20.6",


to

    "drizzle-orm": "^0.28.5",
    "drizzle-kit": "^0.19.3",


I updated my config to use the new
defineConfig
method and changed the
connectionString
to
uri


export default defineConfig({
  schema: "./src/server/db/schema.ts",
  driver: "mysql2",
  dbCredentials: {
    uri: env.DATABASE_URL,
  },
  tablesFilter: ["bun-loconta_*"],
});


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:

"scripts": {
    "db:push": "dotenv drizzle-kit push:mysql",
    "db:studio": "dotenv drizzle-kit studio",
  },
Was this page helpful?