KyselyK
Kysely3y ago
15 replies
elitan

Object literal may only specify known properties, and 'clientId' does not exist in type 'InsertObjec

I'm getting this issue with an insert statement using Kysely. But I'm not sure what I'm doing wrong.

Here's the Report interface generated via Kysely Codegen:

export interface Reports {
  reportId: Generated<number>;
  clientId: number;
  [20+ more rows]


Meaning, the
clientId
do exists on the
reports
table.

What am I doing wrong and how should I debug this issue?
CleanShot_2023-11-24_at_09.58.32.png
Solution
ah, seems like LID/RID was a string but should be a number. Hard to debug these error messages.
Was this page helpful?