TypeError: Cannot read properties of undefined (reading 'columns')

Hi, is there any way to fix this error?

I get it after going through the
drizzle-kit generate
wizard.
TypeError: Cannot read properties of undefined (reading 'columns')
    at preparePgAlterColumns (C:\Development\Connect\turbo\node_modules\drizzle-kit\bin.cjs:28040:63)
    at C:\Development\Connect\turbo\node_modules\drizzle-kit\bin.cjs:30267:16
    at Array.map (<anonymous>)
    at applyPgSnapshotsDiff (C:\Development\Connect\turbo\node_modules\drizzle-kit\bin.cjs:30266:51)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async prepareAndMigratePg (C:\Development\Connect\turbo\node_modules\drizzle-kit\bin.cjs:33887:42)
    at async Object.handler (C:\Development\Connect\turbo\node_modules\drizzle-kit\bin.cjs:93575:7)
    at async run (C:\Development\Connect\turbo\node_modules\drizzle-kit\bin.cjs:93059:7)


I believe it's an issue with the db snapshot json files, but I have no idea how to fix this.
Was this page helpful?