fifthF
Convex Community15mo ago
17 replies
fifth

VSCode keeps showing an error on functional Convex API Call

Hi! My issue is that in my Convex database, I have a table called submissions.ts and the table name in the schema.ts file is also submissions. Thus, when using the API call, I also use api.submissions, which is correct, but VSCode keeps wanting me to switch to api.submission, which is wrong (and if I change to it, the code stops working, which makes sense).

How should I address this issue? Is there anything in particular I'm doing wrong with the IDE that is making this an issue? Thank you!
Screenshot_2024-11-13_at_22.13.11.png
Was this page helpful?