Pim de Wit
DTDrizzle Team
•Created by Pim de Wit on 8/2/2024 in #help
`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
Any ideas? 😄
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
3 replies