Sam Whitmore
Sam Whitmore6mo ago

Svelte: `Property 'responses' does not exist on type '{}'.`

I'm encountering this Property 'responses' does not exist on type '{}'. error as I set up my first Convex DB alongside my first Svelte project. Does anybody know where I may have gone wrong?
3 Replies
Sam Whitmore
Sam WhitmoreOP6mo ago
I believe the issue is to do with the api obect that is referenced within _generated/api.js as this appears to be empty? In that, is there something else I must do within this document to define responses as a property of api?
Michal Srb
Michal Srb6mo ago
This is a TypeScript error or a runtime error? TypeScript: - Make sure you don't have an unsaved version of the _generated/api.ts file open - Restart TS server Runtime: - Make sure you have npx convex dev run, it codegens the files in _generated - Make sure you are exporting a query / mutation or action from the right file
Sam Whitmore
Sam WhitmoreOP6mo ago
I figured it out and it was so simple! I created my table within the Convex dashboard and titled it Responses and this was unavailable because my codebase was searchign for responses thank you for your suggestions though – I really appreciate the considered response!

Did you find this page helpful?