Skip to content

Add-on 'better-auth' failed during run: Unable to process 'drizzle.config.ts' #1067

@uncenter

Description

@uncenter

I'm getting the error Error: Add-on 'better-auth' failed during run: Unable to process 'drizzle.config.ts'. Reason: Failed to detect DB dialect in your drizzle.config.[js|ts] file while using pnpx sv create with version v0.15.1. This seems similar to #383 but that seems to have been resolved a while ago. I also don't know if this has anything to do with the addon for better-auth maybe being out of date given #969?

┌  Welcome to the Svelte CLI! (v0.15.1)
│
◇  Where would you like your project to be created?
│  my-project
│
◇  Which template would you like?
│  SvelteKit minimal
│
◇  Add type checking with TypeScript?
│  Yes, using TypeScript syntax
│
◇  What would you like to add to your project? (use arrow keys / space bar)
│  prettier, eslint, drizzle, better-auth
│
◇  drizzle: Which database would you like to use?
│  Cloudflare D1
│
◇  better-auth: Which demo would you like to include?
│  GitHub OAuth
│
◆  Project created
│
■  Error: Add-on 'better-auth' failed during run: Unable to process 'drizzle.config.ts'. Reason: Failed to detect DB dialect in your `drizzle.config.[js|ts]` file
│
│  Please report this issue: https://github.com/sveltejs/cli/issues
│      at runAddon (file:///private/var/folders/9q/pk3c7tg94zd_5gwbqmj9sq_00000gn/T/bunx-501-sv@latest/node_modules/sv/dist/engine-Cq2kv_P1.mjs:12440:9)
│      at applyAddons (file:///private/var/folders/9q/pk3c7tg94zd_5gwbqmj9sq_00000gn/T/bunx-501-sv@latest/node_modules/sv/dist/engine-Cq2kv_P1.mjs:12326:36)
│      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
│      at async runAddonsApply (file:///private/var/folders/9q/pk3c7tg94zd_5gwbqmj9sq_00000gn/T/bunx-501-sv@latest/node_modules/sv/dist/engine-Cq2kv_P1.mjs:12038:36)
│      at async createProject (file:///private/var/folders/9q/pk3c7tg94zd_5gwbqmj9sq_00000gn/T/bunx-501-sv@latest/node_modules/sv/dist/engine-Cq2kv_P1.mjs:11558:97)
│      at async file:///private/var/folders/9q/pk3c7tg94zd_5gwbqmj9sq_00000gn/T/bunx-501-sv@latest/node_modules/sv/dist/engine-Cq2kv_P1.mjs:11405:57
│      at async runCommand (file:///private/var/folders/9q/pk3c7tg94zd_5gwbqmj9sq_00000gn/T/bunx-501-sv@latest/node_modules/sv/dist/engine-Cq2kv_P1.mjs:1503:3)
│
└  Operation failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions