`drizzle-kit migrate` errors

Hey all! I am trying out Drizzle for the first time, I am running into some issues on a fresh vite project w/ Supabase: I am following this tutorial: https://orm.drizzle.team/learn/tutorials/drizzle-with-supabase#applying-changes-to-the-database When I run npx drizzle-kit migrate it results in this:
āžœ dossia_backend npx drizzle-kit migrate

> [email protected] migrate /Users/......../dossia_backend
> drizzle-kit migrate

No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/......../dossia_backend/drizzle.config.ts'
Using 'postgres' driver for database querying
[ā£Ÿ] applying migrations.../Users/......../dossia_backend/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:77610
Object.defineProperties(err2, {
^

TypeError: Cannot redefine property: query
at Function.defineProperties (<anonymous>)
at queryError (/Users/......../dossia_backend/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:77610:12)
at errored (/Users/......../dossia_backend/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:77607:17)
at Socket.data (/Users/......../dossia_backend/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:77554:9)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:128:17)

Node.js v18.19.0
āžœ dossia_backend npx drizzle-kit migrate

> [email protected] migrate /Users/......../dossia_backend
> drizzle-kit migrate

No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/......../dossia_backend/drizzle.config.ts'
Using 'postgres' driver for database querying
[ā£Ÿ] applying migrations.../Users/......../dossia_backend/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:77610
Object.defineProperties(err2, {
^

TypeError: Cannot redefine property: query
at Function.defineProperties (<anonymous>)
at queryError (/Users/......../dossia_backend/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:77610:12)
at errored (/Users/......../dossia_backend/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:77607:17)
at Socket.data (/Users/......../dossia_backend/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:77554:9)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:128:17)

Node.js v18.19.0
Any ideas? šŸ˜„
Drizzle ORM - Drizzle with Supabase Database
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
2 Replies
Pim de Wit
Pim de WitOPā€¢5mo ago
TypeError: Cannot redefine property: query at Function.defineProperties
Jitendra
Jitendraā€¢5mo ago
Can you share drizzle.config.ts file??
Want results from more Discord servers?
Add your server