Drizzle is a popular ORM for TS/JS applications, and Quotion is built on it.
The error
I have encountered the cannot read properties of undefined (reading 'columns') error quite a few times, as shown below:

The solution
The error message isn’t very helpful, and the root cause may be that you have forgotten to export some tables as a schema, especially when you use folders to save table files, you created a new table but forgot to export it as schema.
The fix is quite simple: you just need to export all your database tables as the schema, and this issue should be gone.
Hope it resolves your errors as well. 🙏
Create your blogs directly from Apple Notes.
Say goodbye to complex CMS updates and management issues!
You focus on creating quality content while Quotion takes care of the rest.
Subscribe to Quotion
Get the latest posts delivered to your inbox. No spam, unsubscribe anytime.
Latest
More from the site
Qing
ProductUpdate
Post visibility and search engine indexing controls
#ProductUpdate We're excited to introduce new features that give you more control over your posts! Post visibility Control whether posts appear in your site's content listing while remaining accessibl
Read post
Qing
ProductUpdate
Post scheduling and published date editing
#ProductUpdate We’re excited to announce 2 new features: you can now schedule posts to go live at a specific time and edit the published date of your posts! How to schedule a Post Need to announce som
Read post
Qing
ProductUpdate
Layout editor
#ProductUpdate 🔥 I'm so excited to announce that the layout editor is live now. You can easily edit your site layout inside the design page, home note is no longer needed! All home note functionalit
Read post
