Issue generating auth-schema
@Better Auth
❯ pnpm dlx @better-auth/cli generate
⠋ preparing schema...file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2172
return typeMap[type][databaseType];
^
TypeError: Cannot read properties of undefined (reading 'pg')
at getType (file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2172:27)
at file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2200:18
at Array.map (<anonymous>)
at generateDrizzleSchema (file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2198:28)
at generateSchema (file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2456:12)
at Command.generateAction (file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2499:24)
Node.js v22.13.1
auth:
export const auth = betterAuth({
database: drizzleAdapter(db, {
provider: "pg",
})
})
❯ pnpm dlx @better-auth/cli generate
⠋ preparing schema...file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2172
return typeMap[type][databaseType];
^
TypeError: Cannot read properties of undefined (reading 'pg')
at getType (file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2172:27)
at file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2200:18
at Array.map (<anonymous>)
at generateDrizzleSchema (file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2198:28)
at generateSchema (file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2456:12)
at Command.generateAction (file:///Users/coco/Library/Caches/pnpm/dlx/2630d1115258bcf0a385078b8f531124ceb8d54daa6ed354a6419c4761723963/198b27522a9-139f7/node_modules/.pnpm/@better-auth+cli@1.3.6_kysely@0.28.5_zod@4.0.17/node_modules/@better-auth/cli/dist/index.mjs:2499:24)
Node.js v22.13.1
auth:
export const auth = betterAuth({
database: drizzleAdapter(db, {
provider: "pg",
})
})


