No config path provided, using default 'drizzle.config.ts

also tried deleting node-module then runing npm i drizzle-orm @Neondatabase/serverless ... still said it needs to be updated if i run drizzle-kit studio
No description
23 Replies
Darren
Darren2mo ago
npm i -D drizzle-kit also please note, this config has the same mistake you made in your previous post, you do not need driver
Slime
SlimeOP2mo ago
No description
Darren
Darren2mo ago
npm i -D drizzle-kit
Slime
SlimeOP2mo ago
No description
Slime
SlimeOP2mo ago
dotenv is installed too
Darren
Darren2mo ago
import { defineConfig } from "drizzle-kit";
import { loadEnvConfig } from "@next/env";

loadEnvConfig(process.cwd(), true);

export default defineConfig({
schema: "./db/schema.ts",
out: "./drizzle",
dialect: "postgresql",
schemaFilter: "public",
verbose: true,
strict: true,
dbCredentials: {
url: process.env.DATABASE_URL as string,
},
});
import { defineConfig } from "drizzle-kit";
import { loadEnvConfig } from "@next/env";

loadEnvConfig(process.cwd(), true);

export default defineConfig({
schema: "./db/schema.ts",
out: "./drizzle",
dialect: "postgresql",
schemaFilter: "public",
verbose: true,
strict: true,
dbCredentials: {
url: process.env.DATABASE_URL as string,
},
});
Slime
SlimeOP2mo ago
No description
Slime
SlimeOP2mo ago
thank youuu sooo much T^T
Darren
Darren2mo ago
you might need to rerun
npm i drizzle-orm @neondatabase/serverless
npm i drizzle-orm @neondatabase/serverless
Slime
SlimeOP2mo ago
No description
Slime
SlimeOP2mo ago
PS C:\Users\popca\Desktop\Attemp3\duolingo-clone> npm i -D drizzle-kit added 9 packages, and audited 665 packages in 11s PS C:\Users\popca\Desktop\Attemp3\duolingo-clone> npm i drizzle-orm @Neondatabase/serverless npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported added 38 packages, removed 1 package, changed 2 packages, and audited 702 packages in 15s added 38 packages, removed 1 package, changed 2 packages, and audited 702 packages in 15s added 38 packages, removed 1 package, changed 2 packages, and audited 702 packages in 15s added 38 packages, removed 1 package, changed 2 packages, and audited 702 packages in 15s added 38 packages, removed 1 package, changed 2 packages, and audited 702 packages in 15s added 38 packages, removed 1 package, changed 2 packages, and audited 702 packages in 15s 176 packages are looking for funding run npm fund for details 4 high severity vulnerabilities To address issues that do not require attention, run: npm audit fix To address all issues, run: npm audit fix --force Run npm audit for details. PS C:\Users\popca\Desktop\Attemp3\duolingo-clone> npx drizzle-kit studio drizzle-kit: v0.20.18 drizzle-orm: v0.30.10 No config path provided, using default path Reading config file 'C:\Users\popca\Desktop\Attemp3\duolingo-clone\drizzle.config.ts' Invalid input You need to specify a "driver" param in you config. It will help drizzle to know how to query you database. You can read more about drizzle.config: https://orm.drizzle.team/kit-docs/config-reference
Drizzle ORM - Config Reference
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Slime
SlimeOP2mo ago
No description
Darren
Darren2mo ago
whats in your tsconfig
Slime
SlimeOP2mo ago
{ "compilerOptions": { "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, "noEmit": true, "esModuleInterop": true, "module": "esnext", "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", "incremental": true, "plugins": [ { "name": "next" } ], "paths": { "@/": ["./"] } }, "include": ["next-env.d.ts", "/*.ts", "/.tsx", ".next/types/**/.ts"], "exclude": ["node_modules"] }
Darren
Darren2mo ago
why do you old version of drizzle still?
npm install drizzle-orm@latest
npm install -D drizzle-kit@latest
npm install drizzle-orm@latest
npm install -D drizzle-kit@latest
Slime
SlimeOP2mo ago
brooo your soooooooooooooooooooooooo goooooooooooooooooooood T^T
Slime
SlimeOP2mo ago
No description
Slime
SlimeOP2mo ago
i hope your family for health and more blessings ... i hope you have nice dinner tommorow T^T
Slime
SlimeOP2mo ago
No description
Slime
SlimeOP2mo ago
finalllyyyyyyyyyy
Slime
SlimeOP2mo ago
No description
Slime
SlimeOP2mo ago
still theres a bug but finally T^T again thank youuu soo much i can finally move T^T @Darren
Darren
Darren2mo ago
np gl hf
Want results from more Discord servers?
Add your server