Drizzle TeamDT
Drizzle Team15mo ago
2 replies
Mike

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

I'm switching from Option 3 to Option 2 from this document https://orm.drizzle.team/docs/migrations

I used
drizzle-kit push
to push my new schema changes to Supabase database but got this error
.../node_modules/drizzle-kit/bin.cjs:20104
              checkValue = checkValue.replace(/^CHECK\s*\(\(/, "").replace(/\)\)\s*$/, "");
                                      ^

TypeError: Cannot read properties of undefined (reading 'replace')
Node.js v20.13.1

What exactly is going wrong?
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Was this page helpful?