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. 🙏
engineering
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.
Latest
More from the blog
Qing
Introducing Realtime Preview
Today, we're excited to announce, Quotion supports Realtime Preview now. You can preview your latest changes on your Quotion sites in realtime, no more refresh your page manually. Demo :::note Click any pen links will load your site in realtime preview mode. You don't need to click every post via the pen. ::: Checkout our
Read post
Qing
Introducing KaTeX
Many students are using Quotion. One of the most wanted features is KaTeX for math. Today, we're excited to share that Quotion now supports KaTeX out of the box. 🔥 Preview The note: The post: Tech details We need KaTeX css to render expressions correctly, but it is a pretty big chunk, to reduce the
Read post
Qing
Introducing comment widgets
Today, we are excited to announce a new feature on Quotion - comment widgets! This feature allows our valued customers to engage with their readers easily and create a sense of community around their content. The best part? You don't need to use any 3rd-party solutions to enable it! How to enable it Go to
Read post