TypeError: client.migrate

I am getting this error TypeError: client.migrate is not a function with Kysely + Drizzle Kit + Turso + Bun + Nextjs when I drizzle-kit push. My config (in the root of nextjs project):
import { defineConfig } from "drizzle-kit";

if (!process.env.TURSO_DATABASE_NAME) {
throw new Error("TURSO_DATABASE_NAME is missing");
}

if (!process.env.TURSO_ORG) {
throw new Error("TURSO_ORG is missing");
}

if (!process.env.TURSO_GROUP_AUTH_TOKEN) {
throw new Error("TURSO_GROUP_AUTH_TOKEN is missing");
}

const url = `libsql://${process.env.TURSO_DATABASE_NAME}-${process.env.TURSO_ORG}.turso.io`;

export default defineConfig({
schema: "./src/core/**/*.sql.ts",
out: "./src/migrations",
dialect: "turso",
dbCredentials: {
url,
authToken: process.env.TURSO_GROUP_AUTH_TOKEN,
},
});
import { defineConfig } from "drizzle-kit";

if (!process.env.TURSO_DATABASE_NAME) {
throw new Error("TURSO_DATABASE_NAME is missing");
}

if (!process.env.TURSO_ORG) {
throw new Error("TURSO_ORG is missing");
}

if (!process.env.TURSO_GROUP_AUTH_TOKEN) {
throw new Error("TURSO_GROUP_AUTH_TOKEN is missing");
}

const url = `libsql://${process.env.TURSO_DATABASE_NAME}-${process.env.TURSO_ORG}.turso.io`;

export default defineConfig({
schema: "./src/core/**/*.sql.ts",
out: "./src/migrations",
dialect: "turso",
dbCredentials: {
url,
authToken: process.env.TURSO_GROUP_AUTH_TOKEN,
},
});
6 Replies
nightwatch128
nightwatch128OP2mo ago
Bump
Liam
Liam2mo ago
Getting this aswell, did you find a solution?
nightwatch128
nightwatch128OP5w ago
Did not find a solution...
Angelelz
Angelelz5w ago
@Andrii Sherman
Chen
Chen4w ago
Getting this too with Drizzle Kit + Turso Did you figure it out @nightwatch128?
ricopinazo
ricopinazo4w ago
I'm getting this as well I just updated the version of @libsql/client to 0.14.0 and its working now @Chen @nightwatch128
Want results from more Discord servers?
Add your server