type-sql
type-sql copied to clipboard
TypeError: Class constructor QueryTable cannot be invoked without 'new'
If I use the table definition from the README, I get the error:
TypeError: Class constructor QueryTable cannot be invoked without 'new'
But there is clearly a 'new' there, if you create an instance of a child of QueryTable :
export const BOOK = new BookTable('Book');
i have the same issue.