Module '"better-auth/adapters/drizzle"' has no exported member 'drizzleAdapter' #2983

Closed
opened 2026-03-13 10:32:23 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @Jussinevavuori on GitHub (Mar 4, 2026).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Install better-auth@1.5.3
  2. Import: import { drizzleAdapter } from "better-auth/adapters/drizzle";
  3. Receive: `Module '"better-auth/adapters/drizzle"' has no exported member 'drizzleAdapter'à

Current vs. Expected behavior

After updating to better-auth@1.5.3, the drizzleAdapter export disappeared. It should still be there.

What version of Better Auth are you using?

1.5.3

System info

{
  "system": {
    "platform": "darwin",
    "arch": "arm64",
    "version": "Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:40 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6000",
    "release": "25.2.0",
    "cpuCount": 10,
    "cpuModel": "Apple M1 Pro",
    "totalMemory": "16.00 GB",
    "freeMemory": "1.31 GB"
  },
  "node": {
    "version": "v24.1.0",
    "env": "development"
  },
  "packageManager": {
    "name": "npm", // Note: Actually bun
    "version": "11.3.0" // Note: Actually 1.3.8
  },
  "frameworks": null, // Note: Tanstack Start, not found due to monorepo
  "databases": null, // Note: Drizzle + PostgreSQL, not found due to monorepo
  "betterAuth": {
    "version": "Unknown", // Note: not found due to monorepo
    "config": null // Note: not found due to monorepo
  }
}

Which area(s) are affected? (Select all that apply)

Backend, Types

Auth config (if applicable)

import { drizzleAda } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";

export const auth = betterAuth({
  // ...
  database: drizzleAdapter(...),
});

Additional context

No response

Originally created by @Jussinevavuori on GitHub (Mar 4, 2026). ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce 1. Install `better-auth@1.5.3` 2. Import: `import { drizzleAdapter } from "better-auth/adapters/drizzle";` 3. Receive: `Module '"better-auth/adapters/drizzle"' has no exported member 'drizzleAdapter'à ### Current vs. Expected behavior After updating to `better-auth@1.5.3`, the `drizzleAdapter` export disappeared. It should still be there. ### What version of Better Auth are you using? 1.5.3 ### System info ```bash { "system": { "platform": "darwin", "arch": "arm64", "version": "Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:40 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6000", "release": "25.2.0", "cpuCount": 10, "cpuModel": "Apple M1 Pro", "totalMemory": "16.00 GB", "freeMemory": "1.31 GB" }, "node": { "version": "v24.1.0", "env": "development" }, "packageManager": { "name": "npm", // Note: Actually bun "version": "11.3.0" // Note: Actually 1.3.8 }, "frameworks": null, // Note: Tanstack Start, not found due to monorepo "databases": null, // Note: Drizzle + PostgreSQL, not found due to monorepo "betterAuth": { "version": "Unknown", // Note: not found due to monorepo "config": null // Note: not found due to monorepo } } ``` ### Which area(s) are affected? (Select all that apply) Backend, Types ### Auth config (if applicable) ```typescript import { drizzleAda } from "better-auth"; import { drizzleAdapter } from "better-auth/adapters/drizzle"; export const auth = betterAuth({ // ... database: drizzleAdapter(...), }); ``` ### Additional context _No response_
GiteaMirror added the adapterbug labels 2026-03-13 10:32:23 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 4, 2026):

The database adapters were separated into standalone packages. You'll need to install the new package and update your import:

bun add @better-auth/drizzle-adapter
// Old (no longer works)
import { drizzleAdapter } from "better-auth/adapters/drizzle";

// New
import { drizzleAdapter } from "@better-auth/drizzle-adapter";

After updating, regenerate your schema:

bunx @better-auth/cli@latest generate

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Mar 4, 2026): <!-- Answer --> The database adapters were [separated into standalone packages](https://github.com/better-auth/better-auth/pull/7439). You'll need to install the new package and update your import: ```bash bun add @better-auth/drizzle-adapter ``` ```typescript // Old (no longer works) import { drizzleAdapter } from "better-auth/adapters/drizzle"; // New import { drizzleAdapter } from "@better-auth/drizzle-adapter"; ``` After updating, regenerate your schema: ```bash bunx @better-auth/cli@latest generate ``` <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b4efff6b-f49b-4279-9815-a30d3c561ba8?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b4efff6b-f49b-4279-9815-a30d3c561ba8?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b4efff6b-f49b-4279-9815-a30d3c561ba8?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b4efff6b-f49b-4279-9815-a30d3c561ba8?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b4efff6b-f49b-4279-9815-a30d3c561ba8?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b4efff6b-f49b-4279-9815-a30d3c561ba8?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b4efff6b-f49b-4279-9815-a30d3c561ba8?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20database%20adapters%20were%20%5Bseparated%20into%20standalone%20packages%5D%28https%3A//github.com/better-auth/better-auth/pull/7439%29.%20You%27ll%20need%20to%20install%20the%20new%20package%20and%20update%20your%20import%3A%0A%0A%60%60%60bash%0Abun%20add%20%40better-auth/drizzle-adapter%0A%60%60%60%0A%0A%60%60%60typescript%0A//%20Old%20%28no%20longer%20works%29%0Aimport%20%7B%20drizzleAdapter%20%7D%20from%20%22better-auth/adapters/drizzle%22%3B%0A%0A//%20New%0Aimport%20%7B%20drizzleAdapter%20%7D%20from%20%22%40better-auth/drizzle-adapter%22%3B%0A%60%60%60%0A%0AAfter%20updating%2C%20regenerate%20your%20schema%3A%0A%60%60%60bash%0Abunx%20%40better-auth/cli%40latest%20generate%0A%60%60%60)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/8366)
Author
Owner

@razermackham commented on GitHub (Mar 5, 2026):

Thanks for the update! I noticed this change unexpectedly broke my existing deployment. Should this possibly have been released as a semver major version bump, or am I misunderstanding the expected behavior?

My package.json dependencies snippet:
"better-auth": "^1.4.17",

@razermackham commented on GitHub (Mar 5, 2026): Thanks for the update! I noticed this change unexpectedly broke my existing deployment. Should this possibly have been released as a semver major version bump, or am I misunderstanding the expected behavior? My package.json dependencies snippet: `"better-auth": "^1.4.17",`
Author
Owner

@mgray88 commented on GitHub (Mar 5, 2026):

Adding to this to say that the docs need to be updated to reflect this change:

https://better-auth.com/docs/installation#configure-database

@mgray88 commented on GitHub (Mar 5, 2026): Adding to this to say that the docs need to be updated to reflect this change: https://better-auth.com/docs/installation#configure-database
Author
Owner

@ping-maxwell commented on GitHub (Mar 6, 2026):

Hey guys, sorry for this unexpected issue.
It should be fixed in 1.5.4.

@ping-maxwell commented on GitHub (Mar 6, 2026): Hey guys, sorry for this unexpected issue. It should be fixed in `1.5.4`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#2983