drizzle-team / drizzle-kit-mirror

Docs and issues repository for drizzle-kit
287 stars 16 forks source link

dialect param config error message is wrong #392

Open ceo0x opened 2 months ago

ceo0x commented 2 months ago
drizzle-kit: v0.21.0
drizzle-orm: v0.30.10

No config path provided, using default path
Reading config file '/Users/macuser/Projects/gitscan/drizzle.config.ts'
 Invalid input  Please specify 'dialect' param in config, either of 'pg', 'mysql' or 'sqlite'

Im getting 'pg' as recommendation for the dialect param but dialect accepts the following params : postgresql,mysql,sqlite

/drizzle-kit/index.d.mts

declare const dialect: zod.ZodEnum<["postgresql", "mysql", "sqlite"]>;
type Dialect = TypeOf<typeof dialect>;
nalin-singh commented 1 month ago

Yes, and an add-on to that for anyone who runs into this issue. I had to remove the drizzle-kit package then re-install it to even see the new dialect thing popup as earlier with v20 it didn't had dialect.