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
AppleNotes
Apple Notes Updates 2024
#AppleNotes iPad18 & iOS18 introduced many powerful new features for Apple Notes. Math Notes There is a new Math Notes folder in the Notes app, which you can type or write out mathematical expression
Read post
Qing
AppleNotes
How to Share Apple Notes and Collaborate with Others
#AppleNotes Did you know you can share your notes with other iCloud users in Apple Notes? Besides, you can also collaborate with others to work on the same notes, everyone can see each other's changes
Read post
Qing
AppleNotes
Use Templates in Apple Notes
#AppleNotes If you use Apple Notes daily like me, you may want to use templates to setup your daily notes quickly. Since Apple Notes doesn't have a built-in template feature. Here are some apps I foun
Read post