Weir bug image on db:push

Everything was doing great and all until yesterday when I tried to push some changes to my db using
bun run db:push"
bun run db:push"
a script that runs
drizzle-kit push
drizzle-kit push
I get a weird error like drizzle went to one of my image file :
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/ikbal/work/danaus/website/danaus_app/drizzle.config.ts'
Using 'pg' driver for database querying
[✓] Pulling schema from database...
/Users/ikbal/work/danaus/website/danaus_app/public/products/kimonos.jpeg:1
����


SyntaxError: Invalid or unexpected token
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/ikbal/work/danaus/website/danaus_app/drizzle.config.ts'
Using 'pg' driver for database querying
[✓] Pulling schema from database...
/Users/ikbal/work/danaus/website/danaus_app/public/products/kimonos.jpeg:1
����


SyntaxError: Invalid or unexpected token
I'm using : - "drizzle-orm": "^0.31.2", - "drizzle-kit": "^0.24.2", - "next": "14.2.4",
2 Replies
Angelelz
Angelelz4mo ago
Can you share your config file?
IkiTg07
IkiTg07OP4mo ago
Hey sorry didn't get any notification. HEre's the config file
import { defineConfig } from "drizzle-kit";

if (!process.env.DATABASE_URL) {
throw new Error("DATABASE_URL is not set");
}

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

if (!process.env.DATABASE_URL) {
throw new Error("DATABASE_URL is not set");
}

export default defineConfig({
schema: "./lib/db/schema.ts",
out: "./drizzle",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL,
},
verbose: true,
strict: true,
});
Want results from more Discord servers?
Add your server