Skip to content

npx sv create SvelteKit demo fail Failed to detect DB dialect in your drizzle.config.[js|ts] file #383

@good-dev-student

Description

@good-dev-student

npx sv create test-svelte-5
┌ Welcome to the Svelte CLI! (v0.6.10)

◇ Which template would you like?
│ SvelteKit demo

◇ Add type checking with Typescript?
│ Yes, using Typescript syntax

◆ Project created

◇ What would you like to add to your project? (use arrow keys / space bar)
│ prettier, eslint, vitest, playwright, tailwindcss, sveltekit-adapter, drizzle, lucia, mdsvex, paraglide, storybook

◇ tailwindcss: Which plugins would you like to add?
│ typography, forms, container-queries

◇ sveltekit-adapter: Which SvelteKit adapter would you like to use?
│ node

◇ lucia: Do you want to include a demo? (includes a login/register page)
│ Yes

◇ drizzle: Which database would you like to use?
│ PostgreSQL

◇ drizzle: Which PostgreSQL client would you like to use?
│ Postgres.JS

◇ drizzle: Do you want to run the database locally with docker-compose?
│ Yes

◇ paraglide: Which languages would you like to support? (e.g. en,de-ch)
│ en,fr

◇ paraglide: Do you want to include a demo?
│ Yes

◇ Which package manager do you want to install dependencies with?
│ pnpm

■ Error: Unable to process 'drizzle.config.ts'. Reason: Failed to detect DB dialect in your drizzle.config.[js|ts] file
│ at Object.file (file:///C:/Users/sysadm/AppData/Local/npm-cache/_npx/6ef4a8874203b3d8/node_modules/sv/dist/install-Bj_yXcZX.js:43711:17)
│ at Object.run (file:///C:/Users/sysadm/AppData/Local/npm-cache/_npx/6ef4a8874203b3d8/node_modules/sv/dist/bin.js:6824:8)
│ at runAddon (file:///C:/Users/sysadm/AppData/Local/npm-cache/_npx/6ef4a8874203b3d8/node_modules/sv/dist/install-Bj_yXcZX.js:43743:15)
│ at applyAddons (file:///C:/Users/sysadm/AppData/Local/npm-cache/_npx/6ef4a8874203b3d8/node_modules/sv/dist/install-Bj_yXcZX.js:43673:25)
│ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
│ at async runAddCommand (file:///C:/Users/sysadm/AppData/Local/npm-cache/_npx/6ef4a8874203b3d8/node_modules/sv/dist/bin.js:12071:25)
│ at async createProject (file:///C:/Users/sysadm/AppData/Local/npm-cache/_npx/6ef4a8874203b3d8/node_modules/sv/dist/bin.js:12305:47)
│ at async file:///C:/Users/sysadm/AppData/Local/npm-cache/_npx/6ef4a8874203b3d8/node_modules/sv/dist/bin.js:12206:59
│ at async runCommand (file:///C:/Users/sysadm/AppData/Local/npm-cache/_npx/6ef4a8874203b3d8/node_modules/sv/dist/bin.js:8131:5)

└ Operation failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpkg:addsv add

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions