TypeError e.select is not a function #317

Closed
opened 2026-03-13 07:41:42 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @productdevbook on GitHub (Dec 3, 2024).

Singin or Singup this problem.

[Better Auth]  ERROR   TypeError e.select is not a function

  at Object.findOne (node_modules/.pnpm/better-auth@1.0.8/node_modules/better-auth/dist/adapters/drizzle.js:1:9649)
  at Object.findUserByEmail (node_modules/.pnpm/better-auth@1.0.8/node_modules/better-auth/dist/index.js:83:17800)
  at node_modules/.pnpm/better-auth@1.0.8/node_modules/better-auth/dist/index.js:3:6564
  at handle (node_modules/.pnpm/better-call@0.3.3-beta.2/node_modules/better-call/src/endpoint.ts:175:21)
  at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
  at async Te.a.<computed> (node_modules/.pnpm/better-auth@1.0.8/node_modules/better-auth/dist/index.js:83:9257)
  at async handler (node_modules/.pnpm/better-call@0.3.3-beta.2/node_modules/better-call/src/router.ts:116:23)
  at async handler (node_modules/.pnpm/better-call@0.3.3-beta.2/node_modules/better-call/src/router.ts:167:16)
  at async node_modules/.pnpm/h3@1.13.0/node_modules/h3/dist/index.mjs:1978:19
  at async Object.callAsync (node_modules/.pnpm/unctx@2.3.1/node_modules/unctx/dist/index.mjs:72:16)

Originally created by @productdevbook on GitHub (Dec 3, 2024). Singin or Singup this problem. ``` [Better Auth] ERROR TypeError e.select is not a function at Object.findOne (node_modules/.pnpm/better-auth@1.0.8/node_modules/better-auth/dist/adapters/drizzle.js:1:9649) at Object.findUserByEmail (node_modules/.pnpm/better-auth@1.0.8/node_modules/better-auth/dist/index.js:83:17800) at node_modules/.pnpm/better-auth@1.0.8/node_modules/better-auth/dist/index.js:3:6564 at handle (node_modules/.pnpm/better-call@0.3.3-beta.2/node_modules/better-call/src/endpoint.ts:175:21) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async Te.a.<computed> (node_modules/.pnpm/better-auth@1.0.8/node_modules/better-auth/dist/index.js:83:9257) at async handler (node_modules/.pnpm/better-call@0.3.3-beta.2/node_modules/better-call/src/router.ts:116:23) at async handler (node_modules/.pnpm/better-call@0.3.3-beta.2/node_modules/better-call/src/router.ts:167:16) at async node_modules/.pnpm/h3@1.13.0/node_modules/h3/dist/index.mjs:1978:19 at async Object.callAsync (node_modules/.pnpm/unctx@2.3.1/node_modules/unctx/dist/index.mjs:72:16) ```
Author
Owner

@Bekacru commented on GitHub (Dec 3, 2024):

are you sure you're properly passing your drizzle db to the adapter?

@Bekacru commented on GitHub (Dec 3, 2024): are you sure you're properly passing your drizzle db to the adapter?
Author
Owner

@productdevbook commented on GitHub (Dec 3, 2024):

You're right, it's my fault. It's working now. Thank you. ❤️

@productdevbook commented on GitHub (Dec 3, 2024): You're right, it's my fault. It's working now. Thank you. :heart:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#317