drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
21.44k stars 484 forks source link

[BUG]: Cannot read properties of undefined (reading 'type') #2556

Closed Multinite closed 3 days ago

Multinite commented 4 days ago

What version of drizzle-orm are you using?

v0.31.0

What version of drizzle-kit are you using?

v0.22.1

Describe the Bug

When running: drizzle-kit push --config=drizzle.config.ts When reading the schema files, it suddenly gets this error:

TypeError: Cannot read properties of undefined (reading 'type') at /Users/Documents/dev/multinite-server/node_modules/drizzle-kit/bin.cjs:120081:123 at Array.filter () at filterStatements (/Users/Documents/dev/multinite-server/node_modules/drizzle-kit/bin.cjs:120061:25) at mysqlPush (/Users/Documents/dev/multinite-server/node_modules/drizzle-kit/bin.cjs:122437:34) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async _Command. (/Users/Documents/dev/multinite-server/node_modules/drizzle-kit/bin.cjs:129687:7)

Expected behavior

No errors.

Environment & setup

No response