When use drizzle-kit drop command got an error: Error Please specify 'dialect' param

Hello! I'm working on drizzle/neon setup and at the moment I would like to drop my migrations which is stored inside of this directory:
src/libs/packages/drizzle/migrations
src/libs/packages/drizzle/migrations

Issue: When I've tried the following command:
npx drizzle-kit drop --out=src/libs/packages/drizzle/migrations
npx drizzle-kit drop --out=src/libs/packages/drizzle/migrations
I got this error:
Error Please specify 'dialect' param
Error Please specify 'dialect' param
I don't quite understand what's wrong because this command doesn't have this parameter. I did try to point out the dialect and got the following error:
error: unknown option '--dialect=postgresql'
error: unknown option '--dialect=postgresql'
Here's my drizzle.config.ts file:
import { defineConfig } from "drizzle-kit";
import { config } from "@/libs/packages/config";

const drizzleConfig = defineConfig({
schema: "src/libs/packages/drizzle/schema.ts",
out: "src/libs/packages/drizzle/migrations",
dialect: "postgresql",
dbCredentials: {
url: config.env.NEON_CONNECTION_STRING,
},
verbose: true,
strict: true,
});

export { drizzleConfig };
import { defineConfig } from "drizzle-kit";
import { config } from "@/libs/packages/config";

const drizzleConfig = defineConfig({
schema: "src/libs/packages/drizzle/schema.ts",
out: "src/libs/packages/drizzle/migrations",
dialect: "postgresql",
dbCredentials: {
url: config.env.NEON_CONNECTION_STRING,
},
verbose: true,
strict: true,
});

export { drizzleConfig };
Question: How can I fix it so that drizzle doesn't throw the error about a non-existent parameter? Repository https://github.com/PablloZz/next-express-auth/tree/feat/init-drizzle-neon/backend I will be grateful for any help
GitHub
next-express-auth/backend at feat/init-drizzle-neon · PablloZz/next...
Contribute to PablloZz/next-express-auth development by creating an account on GitHub.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server